home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-09-15 | 110.4 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Sep 15 07:00:00 1994, modified Thu Sep 15 07:00:00 1994, creator 'HLX2', type 'ONLN', 109491 bytes "Control Strip Technical Note" , at 0x1ac33 3279 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
66%
| TrID
| SpeedScript document (C64)
| default (weak)
| |
33%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1c 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 20 |..Contro|l Strip |
|00000010| 54 65 63 68 6e 69 63 61 | 6c 20 4e 6f 74 65 00 00 |Technica|l Note..|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 01 ab b3 00 | 00 0c cf aa 9d d9 b0 aa |........|........|
|00000060| 9d d9 b0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1a d0 00 00 |........|........|
|00000080| 43 6f 6e 74 72 6f 6c 20 | 53 74 72 69 70 20 4d 6f |Control |Strip Mo|
|00000090| 64 75 6c 65 73 0d 4f 70 | 65 72 61 74 69 6e 67 20 |dules.Op|erating |
|000000a0| 53 79 73 74 65 6d 09 0d | 52 65 76 69 73 65 64 20 |System..|Revised |
|000000b0| 62 79 3a 09 42 72 69 61 | 6e 20 42 65 63 68 74 65 |by:.Bria|n Bechte|
|000000c0| 6c 09 53 65 70 74 65 6d | 62 65 72 20 31 39 39 34 |l.Septem|ber 1994|
|000000d0| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 41 6c 6c |.Written| by:.All|
|000000e0| 65 6e 20 57 61 74 73 6f | 6e 2c 20 53 74 65 76 65 |en Watso|n, Steve|
|000000f0| 20 43 68 72 69 73 74 65 | 6e 73 65 6e 09 4a 75 6c | Christe|nsen.Jul|
|00000100| 79 20 31 39 39 34 0d 57 | 65 20 64 69 73 63 75 73 |y 1994.W|e discus|
|00000110| 73 20 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 20 |s Contro|l Strip |
|00000120| 6d 6f 64 75 6c 65 73 20 | 61 6e 64 20 68 6f 77 20 |modules |and how |
|00000130| 74 6f 20 77 72 69 74 65 | 20 61 20 6e 65 77 20 6d |to write| a new m|
|00000140| 6f 64 75 6c 65 2e 20 20 | 54 68 69 73 20 69 6e 66 |odule. |This inf|
|00000150| 6f 72 6d 61 74 69 6f 6e | 20 6f 72 69 67 69 6e 61 |ormation| origina|
|00000160| 6c 6c 79 20 61 70 70 65 | 61 72 65 64 20 69 6e 20 |lly appe|ared in |
|00000170| 74 68 65 20 50 6f 77 65 | 72 42 6f 6f 6b 20 35 32 |the Powe|rBook 52|
|00000180| 30 2c 20 35 32 30 63 2c | 20 35 34 30 2c 20 35 34 |0, 520c,| 540, 54|
|00000190| 30 63 20 44 65 76 65 6c | 6f 70 65 72 20 4e 6f 74 |0c Devel|oper Not|
|000001a0| 65 2e 20 20 49 74 20 69 | 73 20 62 65 69 6e 67 20 |e. It i|s being |
|000001b0| 70 75 62 6c 69 73 68 65 | 64 20 61 73 20 61 20 54 |publishe|d as a T|
|000001c0| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 66 6f |echnical| Note fo|
|000001d0| 72 20 65 61 73 65 20 6f | 66 20 61 63 63 65 73 73 |r ease o|f access|
|000001e0| 2e 20 54 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |. The in|formatio|
|000001f0| 6e 20 69 6e 20 74 68 65 | 20 50 6f 77 65 72 42 6f |n in the| PowerBo|
|00000200| 6f 6b 20 35 32 30 2c 20 | 35 32 30 63 2c 20 35 34 |ok 520, |520c, 54|
|00000210| 30 2c 20 35 34 30 63 20 | 44 65 76 65 6c 6f 70 65 |0, 540c |Develope|
|00000220| 72 20 4e 6f 74 65 20 69 | 73 20 6f 62 73 6f 6c 65 |r Note i|s obsole|
|00000230| 74 65 2e 20 41 6c 6c 20 | 66 75 74 75 72 65 20 75 |te. All |future u|
|00000240| 70 64 61 74 65 73 20 74 | 6f 20 74 68 69 73 20 64 |pdates t|o this d|
|00000250| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 77 69 6c |ocumenta|tion wil|
|00000260| 6c 20 68 61 70 70 65 6e | 20 77 69 74 68 69 6e 20 |l happen| within |
|00000270| 74 68 69 73 20 54 65 63 | 68 6e 69 63 61 6c 20 4e |this Tec|hnical N|
|00000280| 6f 74 65 2e 0d 54 6f 70 | 69 63 73 0d a5 20 49 6e |ote..Top|ics.. In|
|00000290| 74 72 6f 64 75 63 74 69 | 6f 6e 0d a5 09 41 64 64 |troducti|on...Add|
|000002a0| 69 6e 67 20 61 20 43 6f | 6e 74 72 6f 6c 20 53 74 |ing a Co|ntrol St|
|000002b0| 72 69 70 0d a5 20 4d 6f | 64 75 6c 65 20 49 6e 74 |rip.. Mo|dule Int|
|000002c0| 65 72 66 61 63 65 0d a5 | 20 4d 6f 64 75 6c 65 20 |erface..| Module |
|000002d0| 52 65 65 6e 74 72 61 6e | 63 79 0d a5 09 43 6f 6e |Reentran|cy...Con|
|000002e0| 74 72 6f 6c 20 53 74 72 | 69 70 20 4d 6f 64 75 6c |trol Str|ip Modul|
|000002f0| 65 20 52 65 66 65 72 65 | 6e 63 65 0d a5 09 55 74 |e Refere|nce...Ut|
|00000300| 69 6c 69 74 79 20 52 6f | 75 74 69 6e 65 73 0d a5 |ility Ro|utines..|
|00000310| 09 47 65 73 74 61 6c 74 | 20 53 65 6c 65 63 74 6f |.Gestalt| Selecto|
|00000320| 72 73 0d 49 6e 74 72 6f | 64 75 63 74 69 6f 6e 0d |rs.Intro|duction.|
|00000330| 54 68 65 20 43 6f 6e 74 | 72 6f 6c 20 53 74 72 69 |The Cont|rol Stri|
|00000340| 70 20 69 73 20 61 20 63 | 6f 6e 74 72 6f 6c 20 70 |p is a c|ontrol p|
|00000350| 61 6e 65 6c 20 74 68 61 | 74 20 70 72 6f 76 69 64 |anel tha|t provid|
|00000360| 65 73 20 74 68 65 20 6f | 70 65 72 61 74 69 6e 67 |es the o|perating|
|00000370| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 66 6f 72 | environ|ment for|
|00000380| 20 43 6f 6e 74 72 6f 6c | 20 53 74 72 69 70 20 6d | Control| Strip m|
|00000390| 6f 64 75 6c 65 73 2e 20 | 49 74 20 72 75 6e 73 20 |odules. |It runs |
|000003a0| 6f 6e 20 61 6e 79 20 4d | 61 63 69 6e 74 6f 73 68 |on any M|acintosh|
|000003b0| 20 50 6f 77 65 72 42 6f | 6f 6b 20 63 6f 6d 70 75 | PowerBo|ok compu|
|000003c0| 74 65 72 20 77 69 74 68 | 20 53 79 73 74 65 6d 20 |ter with| System |
|000003d0| 37 2e 30 20 6f 72 20 6c | 61 74 65 72 2e 20 0d 54 |7.0 or l|ater. .T|
|000003e0| 68 65 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |he Contr|ol Strip|
|000003f0| 20 69 73 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 | is impl|emented |
|00000400| 69 6e 20 61 20 70 72 69 | 76 61 74 65 20 6c 61 79 |in a pri|vate lay|
|00000410| 65 72 20 74 68 61 74 20 | 61 70 70 65 61 72 73 20 |er that |appears |
|00000420| 69 6e 20 66 72 6f 6e 74 | 20 6f 66 20 74 68 65 20 |in front| of the |
|00000430| 77 69 6e 64 6f 77 73 20 | 69 6e 20 61 6c 6c 20 74 |windows |in all t|
|00000440| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6c |he appli|cation l|
|00000450| 61 79 65 72 73 20 73 6f | 20 74 68 61 74 20 74 68 |ayers so| that th|
|00000460| 65 20 77 69 6e 64 6f 77 | 73 20 77 69 6c 6c 20 6e |e window|s will n|
|00000470| 6f 74 20 6f 62 73 63 75 | 72 65 20 69 74 2e 20 54 |ot obscu|re it. T|
|00000480| 68 65 20 75 73 65 72 20 | 63 61 6e 20 6d 6f 76 65 |he user |can move|
|00000490| 20 74 68 65 20 77 69 6e | 64 6f 77 20 66 6f 72 20 | the win|dow for |
|000004a0| 74 68 65 20 43 6f 6e 74 | 72 6f 6c 20 53 74 72 69 |the Cont|rol Stri|
|000004b0| 70 20 74 6f 20 61 6e 79 | 20 6c 6f 63 61 74 69 6f |p to any| locatio|
|000004c0| 6e 20 6f 6e 20 74 68 65 | 20 64 69 73 70 6c 61 79 |n on the| display|
|000004d0| 20 61 73 20 6c 6f 6e 67 | 20 61 73 20 74 68 65 20 | as long| as the |
|000004e0| 72 69 67 68 74 20 6f 72 | 20 6c 65 66 74 20 65 64 |right or| left ed|
|000004f0| 67 65 20 6f 66 20 74 68 | 65 20 73 74 72 69 70 20 |ge of th|e strip |
|00000500| 69 73 20 61 6e 63 68 6f | 72 65 64 20 74 6f 20 74 |is ancho|red to t|
|00000510| 68 65 20 72 69 67 68 74 | 20 6f 72 20 6c 65 66 74 |he right| or left|
|00000520| 20 65 64 67 65 20 6f 66 | 20 74 68 65 20 64 69 73 | edge of| the dis|
|00000530| 70 6c 61 79 2e 20 20 46 | 69 67 75 72 65 20 31 20 |play. F|igure 1 |
|00000540| 73 68 6f 77 73 20 61 20 | 43 6f 6e 74 72 6f 6c 20 |shows a |Control |
|00000550| 53 74 72 69 70 20 66 75 | 6c 6c 79 20 6f 70 65 6e |Strip fu|lly open|
|00000560| 65 64 2c 20 77 69 74 68 | 20 73 6f 6d 65 20 69 6d |ed, with| some im|
|00000570| 61 67 69 6e 61 72 79 20 | 6d 6f 64 75 6c 65 73 20 |aginary |modules |
|00000580| 61 64 64 65 64 2e 0d 46 | 69 67 75 72 65 20 31 09 |added..F|igure 1.|
|00000590| 43 6f 6e 74 72 6f 6c 20 | 53 74 72 69 70 2c 20 6f |Control |Strip, o|
|000005a0| 70 65 6e 65 64 20 0d 54 | 68 65 20 43 6f 6e 74 72 |pened .T|he Contr|
|000005b0| 6f 6c 20 53 74 72 69 70 | 20 68 61 73 20 61 20 74 |ol Strip| has a t|
|000005c0| 61 62 20 6f 6e 20 69 74 | 73 20 75 6e 61 6e 63 68 |ab on it|s unanch|
|000005d0| 6f 72 65 64 20 65 6e 64 | 2e 20 54 68 65 20 75 73 |ored end|. The us|
|000005e0| 65 72 20 63 61 6e 20 64 | 72 61 67 20 74 68 65 20 |er can d|rag the |
|000005f0| 74 61 62 20 74 6f 20 61 | 64 6a 75 73 74 20 74 68 |tab to a|djust th|
|00000600| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 65 20 |e length| of the |
|00000610| 73 74 72 69 70 20 6f 72 | 20 68 6f 6c 64 20 64 6f |strip or| hold do|
|00000620| 77 6e 20 74 68 65 20 4f | 70 74 69 6f 6e 20 6b 65 |wn the O|ption ke|
|00000630| 79 20 61 6e 64 20 64 72 | 61 67 20 74 68 65 20 74 |y and dr|ag the t|
|00000640| 61 62 20 74 6f 20 6d 6f | 76 65 20 74 68 65 20 73 |ab to mo|ve the s|
|00000650| 74 72 69 70 20 74 6f 20 | 61 20 6e 65 77 20 70 6f |trip to |a new po|
|00000660| 73 69 74 69 6f 6e 2e 20 | 54 68 65 20 75 73 65 72 |sition. |The user|
|00000670| 20 63 61 6e 20 72 65 64 | 75 63 65 20 74 68 65 20 | can red|uce the |
|00000680| 43 6f 6e 74 72 6f 6c 20 | 53 74 72 69 70 20 74 6f |Control |Strip to|
|00000690| 20 6a 75 73 74 20 64 69 | 73 70 6c 61 79 20 74 68 | just di|splay th|
|000006a0| 65 20 74 61 62 20 61 6c | 6f 6e 65 2c 20 62 79 20 |e tab al|one, by |
|000006b0| 63 6c 69 63 6b 69 6e 67 | 20 74 68 65 20 74 61 62 |clicking| the tab|
|000006c0| 2e 20 43 6c 69 63 6b 69 | 6e 67 20 74 68 65 20 74 |. Clicki|ng the t|
|000006d0| 61 62 20 77 68 65 6e 20 | 74 68 65 20 43 6f 6e 74 |ab when |the Cont|
|000006e0| 72 6f 6c 20 53 74 72 69 | 70 20 69 73 20 68 69 64 |rol Stri|p is hid|
|000006f0| 64 65 6e 20 6d 61 6b 65 | 73 20 74 68 65 20 43 6f |den make|s the Co|
|00000700| 6e 74 72 6f 6c 20 53 74 | 72 69 70 20 76 69 73 69 |ntrol St|rip visi|
|00000710| 62 6c 65 20 61 67 61 69 | 6e 2e 20 0d 54 68 65 20 |ble agai|n. .The |
|00000720| 64 69 66 66 65 72 65 6e | 74 20 70 61 72 74 73 20 |differen|t parts |
|00000730| 6f 66 20 74 68 65 20 43 | 6f 6e 74 72 6f 6c 20 53 |of the C|ontrol S|
|00000740| 74 72 69 70 20 65 69 74 | 68 65 72 20 64 69 73 70 |trip eit|her disp|
|00000750| 6c 61 79 20 73 74 61 74 | 75 73 20 69 6e 66 6f 72 |lay stat|us infor|
|00000760| 6d 61 74 69 6f 6e 20 6f | 72 20 61 63 74 20 61 73 |mation o|r act as|
|00000770| 20 62 75 74 74 6f 6e 73 | 2e 20 57 68 65 6e 20 74 | buttons|. When t|
|00000780| 68 65 20 75 73 65 72 20 | 63 6c 69 63 6b 73 20 61 |he user |clicks a|
|00000790| 20 62 75 74 74 6f 6e 2c | 20 69 74 20 69 73 20 68 | button,| it is h|
|000007a0| 69 67 68 6c 69 67 68 74 | 65 64 3b 20 73 6f 6d 65 |ighlight|ed; some|
|000007b0| 20 62 75 74 74 6f 6e 73 | 20 61 6c 73 6f 20 64 69 | buttons| also di|
|000007c0| 73 70 6c 61 79 20 61 64 | 64 69 74 69 6f 6e 61 6c |splay ad|ditional|
|000007d0| 20 65 6c 65 6d 65 6e 74 | 73 20 73 75 63 68 20 61 | element|s such a|
|000007e0| 73 20 70 6f 70 2d 75 70 | 20 6d 65 6e 75 73 2e 20 |s pop-up| menus. |
|000007f0| 0d 42 79 20 68 6f 6c 64 | 69 6e 67 20 64 6f 77 6e |.By hold|ing down|
|00000800| 20 74 68 65 20 4f 70 74 | 69 6f 6e 20 6b 65 79 20 | the Opt|ion key |
|00000810| 61 6e 64 20 63 6c 69 63 | 6b 69 6e 67 20 61 20 64 |and clic|king a d|
|00000820| 69 73 70 6c 61 79 20 61 | 72 65 61 2c 20 74 68 65 |isplay a|rea, the|
|00000830| 20 75 73 65 72 20 63 61 | 6e 20 64 72 61 67 20 74 | user ca|n drag t|
|00000840| 68 65 20 64 69 73 70 6c | 61 79 20 61 72 65 61 20 |he displ|ay area |
|00000850| 74 6f 20 61 6e 6f 74 68 | 65 72 20 70 6f 73 69 74 |to anoth|er posit|
|00000860| 69 6f 6e 20 69 6e 20 74 | 68 65 20 43 6f 6e 74 72 |ion in t|he Contr|
|00000870| 6f 6c 20 53 74 72 69 70 | 2e 0d 54 68 65 20 43 6f |ol Strip|..The Co|
|00000880| 6e 74 72 6f 6c 20 53 74 | 72 69 70 20 73 6f 66 74 |ntrol St|rip soft|
|00000890| 77 61 72 65 20 70 72 6f | 76 69 64 65 73 20 61 20 |ware pro|vides a |
|000008a0| 73 74 61 6e 64 61 72 64 | 20 73 63 72 65 65 6e 20 |standard| screen |
|000008b0| 6c 6f 63 61 74 69 6f 6e | 20 66 6f 72 20 61 20 63 |location| for a c|
|000008c0| 6f 6c 6c 65 63 74 69 6f | 6e 20 6f 66 20 69 6e 64 |ollectio|n of ind|
|000008d0| 69 76 69 64 75 61 6c 20 | 6d 6f 64 75 6c 65 73 20 |ividual |modules |
|000008e0| 74 68 61 74 20 70 72 6f | 76 69 64 65 20 73 74 61 |that pro|vide sta|
|000008f0| 74 75 73 20 61 6e 64 20 | 63 6f 6e 74 72 6f 6c 20 |tus and |control |
|00000900| 66 75 6e 63 74 69 6f 6e | 73 2e 20 0d 41 64 64 69 |function|s. .Addi|
|00000910| 6e 67 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |ng Contr|ol Strip|
|00000920| 20 4d 6f 64 75 6c 65 73 | 0d 54 68 65 20 43 6f 6e | Modules|.The Con|
|00000930| 74 72 6f 6c 20 53 74 72 | 69 70 20 69 73 20 69 6d |trol Str|ip is im|
|00000940| 70 6c 65 6d 65 6e 74 65 | 64 20 69 6e 20 73 6f 66 |plemente|d in sof|
|00000950| 74 77 61 72 65 20 61 73 | 20 61 20 73 68 65 6c 6c |tware as| a shell|
|00000960| 20 77 69 74 68 20 69 6e | 64 69 76 69 64 75 61 6c | with in|dividual|
|00000970| 20 63 6f 6e 74 72 6f 6c | 20 61 6e 64 20 73 74 61 | control| and sta|
|00000980| 74 75 73 20 6d 6f 64 75 | 6c 65 73 20 61 64 64 65 |tus modu|les adde|
|00000990| 64 2e 20 54 68 65 20 43 | 6f 6e 74 72 6f 6c 20 53 |d. The C|ontrol S|
|000009a0| 74 72 69 70 20 73 6f 66 | 74 77 61 72 65 20 64 72 |trip sof|tware dr|
|000009b0| 61 77 73 20 74 68 65 20 | 73 74 72 69 70 20 74 68 |aws the |strip th|
|000009c0| 61 74 20 61 63 74 73 20 | 61 73 20 74 68 65 20 62 |at acts |as the b|
|000009d0| 61 63 6b 67 72 6f 75 6e | 64 20 66 6f 72 20 74 68 |ackgroun|d for th|
|000009e0| 65 20 69 6e 64 69 76 69 | 64 75 61 6c 20 6d 6f 64 |e indivi|dual mod|
|000009f0| 75 6c 65 73 2e 20 45 61 | 63 68 20 6d 6f 64 75 6c |ules. Ea|ch modul|
|00000a00| 65 20 69 73 20 72 65 73 | 70 6f 6e 73 69 62 6c 65 |e is res|ponsible|
|00000a10| 20 66 6f 72 20 64 72 61 | 77 69 6e 67 20 74 68 65 | for dra|wing the|
|00000a20| 20 69 63 6f 6e 73 20 61 | 6e 64 20 6f 74 68 65 72 | icons a|nd other|
|00000a30| 20 6f 62 6a 65 63 74 73 | 20 74 68 61 74 20 6d 61 | objects| that ma|
|00000a40| 6b 65 20 75 70 20 69 74 | 73 20 75 73 65 72 20 69 |ke up it|s user i|
|00000a50| 6e 74 65 72 66 61 63 65 | 2e 20 0d 43 6f 6e 74 65 |nterface|. .Conte|
|00000a60| 6e 74 73 20 6f 66 20 4d | 6f 64 75 6c 65 20 46 69 |nts of M|odule Fi|
|00000a70| 6c 65 73 0d 54 68 65 20 | 6f 6e 6c 79 20 72 65 71 |les.The |only req|
|00000a80| 75 69 72 65 64 20 72 65 | 73 6f 75 72 63 65 20 69 |uired re|source i|
|00000a90| 6e 20 61 20 6d 6f 64 75 | 6c 65 20 66 69 6c 65 20 |n a modu|le file |
|00000aa0| 69 73 20 61 20 72 65 73 | 6f 75 72 63 65 20 63 6f |is a res|ource co|
|00000ab0| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 63 6f 64 |ntaining| the cod|
|00000ac0| 65 20 6e 65 63 65 73 73 | 61 72 79 20 66 6f 72 20 |e necess|ary for |
|00000ad0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 74 6f 20 69 6e |the modu|le to in|
|00000ae0| 74 65 72 61 63 74 20 77 | 69 74 68 20 74 68 65 20 |teract w|ith the |
|00000af0| 43 6f 6e 74 72 6f 6c 20 | 53 74 72 69 70 2e 20 20 |Control |Strip. |
|00000b00| 41 20 6d 6f 64 75 6c 65 | 20 66 69 6c 65 20 6d 61 |A module| file ma|
|00000b10| 79 20 63 6f 6e 74 61 69 | 6e 20 6d 6f 72 65 20 74 |y contai|n more t|
|00000b20| 68 61 6e 20 6f 6e 65 20 | 63 6f 64 65 20 72 65 73 |han one |code res|
|00000b30| 6f 75 72 63 65 20 69 66 | 20 69 74 20 69 73 20 74 |ource if| it is t|
|00000b40| 6f 20 70 72 6f 76 69 64 | 65 20 73 75 70 70 6f 72 |o provid|e suppor|
|00000b50| 74 20 66 6f 72 20 6d 6f | 72 65 20 74 68 61 6e 20 |t for mo|re than |
|00000b60| 6f 6e 65 20 66 75 6e 63 | 74 69 6f 6e 2e 20 49 6e |one func|tion. In|
|00000b70| 20 74 68 61 74 20 63 61 | 73 65 2c 20 65 61 63 68 | that ca|se, each|
|00000b80| 20 6d 6f 64 75 6c 65 20 | 69 6e 20 74 68 65 20 66 | module |in the f|
|00000b90| 69 6c 65 20 69 73 20 6c | 6f 61 64 65 64 20 61 6e |ile is l|oaded an|
|00000ba0| 64 20 69 6e 69 74 69 61 | 6c 69 7a 65 64 20 73 65 |d initia|lized se|
|00000bb0| 70 61 72 61 74 65 6c 79 | 20 61 6e 64 20 74 72 65 |parately| and tre|
|00000bc0| 61 74 65 64 20 61 73 20 | 61 6e 20 69 6e 64 65 70 |ated as |an indep|
|00000bd0| 65 6e 64 65 6e 74 20 65 | 6e 74 69 74 79 2e 0d 49 |endent e|ntity..I|
|00000be0| 66 20 61 20 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |f a file| contain|
|00000bf0| 73 20 6f 6e 6c 79 20 61 | 20 73 69 6e 67 6c 65 20 |s only a| single |
|00000c00| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 2c 20 74 |code res|ource, t|
|00000c10| 68 65 20 72 65 73 6f 75 | 72 63 65 20 6d 61 79 20 |he resou|rce may |
|00000c20| 62 65 20 75 6e 6e 61 6d | 65 64 2c 20 61 6e 64 20 |be unnam|ed, and |
|00000c30| 74 68 65 20 6d 6f 64 75 | 6c 65 20 77 69 6c 6c 20 |the modu|le will |
|00000c40| 62 65 20 72 65 66 65 72 | 65 6e 63 65 64 20 62 79 |be refer|enced by|
|00000c50| 20 69 74 73 20 66 69 6c | 65 6e 61 6d 65 2e 20 49 | its fil|ename. I|
|00000c60| 66 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |f more t|han one |
|00000c70| 6d 6f 64 75 6c 65 20 69 | 73 20 63 6f 6e 74 61 69 |module i|s contai|
|00000c80| 6e 65 64 20 77 69 74 68 | 69 6e 20 61 20 6d 6f 64 |ned with|in a mod|
|00000c90| 75 6c 65 20 66 69 6c 65 | 2c 20 65 61 63 68 20 6d |ule file|, each m|
|00000ca0| 6f 64 75 6c 65 20 69 73 | 20 72 65 71 75 69 72 65 |odule is| require|
|00000cb0| 64 20 74 6f 20 68 61 76 | 65 20 61 20 75 6e 69 71 |d to hav|e a uniq|
|00000cc0| 75 65 20 6e 61 6d 65 20 | 64 65 73 63 72 69 62 69 |ue name |describi|
|00000cd0| 6e 67 20 69 74 73 20 66 | 75 6e 63 74 69 6f 6e 61 |ng its f|unctiona|
|00000ce0| 6c 69 74 79 2e 0d 41 6c | 6c 20 6f 74 68 65 72 20 |lity..Al|l other |
|00000cf0| 72 65 73 6f 75 72 63 65 | 73 20 69 6e 20 61 20 6d |resource|s in a m|
|00000d00| 6f 64 75 6c 65 20 66 69 | 6c 65 20 61 72 65 20 6f |odule fi|le are o|
|00000d10| 70 74 69 6f 6e 61 6c 2c | 20 62 75 74 20 74 68 65 |ptional,| but the|
|00000d20| 72 65 20 61 72 65 20 73 | 65 76 65 72 61 6c 20 74 |re are s|everal t|
|00000d30| 68 61 74 20 61 72 65 20 | 72 65 63 6f 6d 6d 65 6e |hat are |recommen|
|00000d40| 64 65 64 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |ded in o|rder to |
|00000d50| 73 75 70 70 6f 72 74 20 | 61 20 63 75 73 74 6f 6d |support |a custom|
|00000d60| 20 69 63 6f 6e 20 61 6e | 64 20 76 65 72 73 69 6f | icon an|d versio|
|00000d70| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 54 |n inform|ation. T|
|00000d80| 68 65 20 72 65 63 6f 6d | 6d 65 6e 64 65 64 20 72 |he recom|mended r|
|00000d90| 65 73 6f 75 72 63 65 73 | 20 61 72 65 0d a5 09 27 |esources| are...'|
|00000da0| 42 4e 44 4c 27 0d a5 09 | 27 46 52 45 46 27 0d a5 |BNDL'...|'FREF'..|
|00000db0| 09 27 49 43 4e 23 27 2c | 20 27 69 63 6c 34 27 2c |.'ICN#',| 'icl4',|
|00000dc0| 20 27 69 63 6c 38 27 2c | 20 27 69 63 73 23 27 2c | 'icl8',| 'ics#',|
|00000dd0| 20 27 69 63 73 34 27 2c | 20 27 69 63 73 38 27 0d | 'ics4',| 'ics8'.|
|00000de0| a5 09 73 69 67 6e 61 74 | 75 72 65 20 72 65 73 6f |..signat|ure reso|
|00000df0| 75 72 63 65 20 28 73 61 | 6d 65 20 74 79 70 65 20 |urce (sa|me type |
|00000e00| 61 73 20 66 69 6c 65 d5 | 73 20 63 72 65 61 74 6f |as file.|s creato|
|00000e10| 72 29 0d a5 09 27 76 65 | 72 73 27 2c 20 49 44 3d |r)...'ve|rs', ID=|
|00000e20| 31 0d 44 65 76 65 6c 6f | 70 65 72 73 20 73 68 6f |1.Develo|pers sho|
|00000e30| 75 6c 64 20 63 6f 6e 66 | 69 6e 65 20 74 68 65 69 |uld conf|ine thei|
|00000e40| 72 20 72 65 73 6f 75 72 | 63 65 73 20 74 6f 20 74 |r resour|ces to t|
|00000e50| 68 65 20 72 61 6e 67 65 | 20 32 35 36 d0 33 32 37 |he range| 256.327|
|00000e60| 36 37 2e 0d 4d 6f 64 75 | 6c 65 20 49 6e 74 65 72 |67..Modu|le Inter|
|00000e70| 66 61 63 65 0d 54 68 65 | 20 6d 6f 64 75 6c 65 d5 |face.The| module.|
|00000e80| 73 20 69 6e 74 65 72 66 | 61 63 65 20 74 6f 20 74 |s interf|ace to t|
|00000e90| 68 65 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |he Contr|ol Strip|
|00000ea0| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 61 20 63 | consist|s of a c|
|00000eb0| 6f 64 65 20 72 65 73 6f | 75 72 63 65 20 6f 66 20 |ode reso|urce of |
|00000ec0| 74 79 70 65 20 27 73 64 | 65 76 27 2e 20 20 54 68 |type 'sd|ev'. Th|
|00000ed0| 69 73 20 63 6f 64 65 20 | 69 73 20 72 65 73 70 6f |is code |is respo|
|00000ee0| 6e 73 69 62 6c 65 20 66 | 6f 72 20 70 65 72 66 6f |nsible f|or perfo|
|00000ef0| 72 6d 69 6e 67 20 61 6c | 6c 20 6f 66 20 74 68 65 |rming al|l of the|
|00000f00| 20 66 75 6e 63 74 69 6f | 6e 73 20 72 65 71 75 69 | functio|ns requi|
|00000f10| 72 65 64 20 62 79 20 74 | 68 65 20 43 6f 6e 74 72 |red by t|he Contr|
|00000f20| 6f 6c 20 53 74 72 69 70 | 20 28 73 65 65 20 62 65 |ol Strip| (see be|
|00000f30| 6c 6f 77 29 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |low) as |well as |
|00000f40| 61 6e 79 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |any func|tions th|
|00000f50| 61 74 20 61 72 65 20 63 | 75 73 74 6f 6d 20 74 6f |at are c|ustom to|
|00000f60| 20 74 68 65 20 6d 6f 64 | 75 6c 65 20 69 74 73 65 | the mod|ule itse|
|00000f70| 6c 66 2e 20 54 68 65 20 | 6d 6f 64 75 6c 65 d5 73 |lf. The |module.s|
|00000f80| 20 65 6e 74 72 79 20 70 | 6f 69 6e 74 20 69 73 20 | entry p|oint is |
|00000f90| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00000fa0| 20 6f 66 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | of the |resource|
|00000fb0| 20 61 6e 64 20 69 73 20 | 64 65 66 69 6e 65 64 20 | and is |defined |
|00000fc0| 61 73 20 0d 70 61 73 63 | 61 6c 20 6c 6f 6e 67 20 |as .pasc|al long |
|00000fd0| 43 6f 6e 74 72 6f 6c 53 | 74 72 69 70 4d 6f 64 75 |ControlS|tripModu|
|00000fe0| 6c 65 28 6c 6f 6e 67 20 | 6d 65 73 73 61 67 65 2c |le(long |message,|
|00000ff0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001010| 6c 6f 6e 67 20 70 61 72 | 61 6d 73 2c 0d 20 20 20 |long par|ams,. |
|00001020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001030| 20 20 20 20 20 20 20 20 | 20 20 20 20 52 65 63 74 | | Rect|
|00001040| 20 2a 73 74 61 74 75 73 | 52 65 63 74 2c 0d 20 20 | *status|Rect,. |
|00001050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 47 72 61 | | Gra|
|00001070| 66 50 74 72 20 73 74 61 | 74 75 73 50 6f 72 74 29 |fPtr sta|tusPort)|
|00001080| 3b 0d 49 6e 74 65 72 61 | 63 74 69 6f 6e 73 20 62 |;.Intera|ctions b|
|00001090| 65 74 77 65 65 6e 20 61 | 20 6d 6f 64 75 6c 65 20 |etween a| module |
|000010a0| 61 6e 64 20 74 68 65 20 | 43 6f 6e 74 72 6f 6c 20 |and the |Control |
|000010b0| 53 74 72 69 70 20 61 72 | 65 20 6d 61 6e 61 67 65 |Strip ar|e manage|
|000010c0| 64 20 62 79 20 70 61 73 | 73 69 6e 67 20 6d 65 73 |d by pas|sing mes|
|000010d0| 73 61 67 65 73 20 74 6f | 20 74 68 65 20 6d 6f 64 |sages to| the mod|
|000010e0| 75 6c 65 20 74 6f 20 74 | 65 6c 6c 20 69 74 20 77 |ule to t|ell it w|
|000010f0| 68 61 74 20 74 6f 20 64 | 6f 20 6f 72 20 74 6f 20 |hat to d|o or to |
|00001100| 6f 62 74 61 69 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |obtain i|nformati|
|00001110| 6f 6e 20 61 62 6f 75 74 | 20 74 68 65 20 6d 6f 64 |on about| the mod|
|00001120| 75 6c 65 20 61 6e 64 20 | 69 74 73 20 63 61 70 61 |ule and |its capa|
|00001130| 62 69 6c 69 74 69 65 73 | 2e 20 20 45 61 63 68 20 |bilities|. Each |
|00001140| 6d 6f 64 75 6c 65 20 69 | 73 20 72 65 71 75 69 72 |module i|s requir|
|00001150| 65 64 20 74 6f 20 6f 62 | 73 65 72 76 65 20 50 61 |ed to ob|serve Pa|
|00001160| 73 63 61 6c 20 72 65 67 | 69 73 74 65 72 20 73 61 |scal reg|ister sa|
|00001170| 76 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 73 |ving con|ventions|
|00001180| 2e 20 20 41 20 6d 6f 64 | 75 6c 65 20 6d 61 79 20 |. A mod|ule may |
|00001190| 74 72 61 73 68 20 72 65 | 67 69 73 74 65 72 73 20 |trash re|gisters |
|000011a0| 44 30 2c 20 44 31 2c 20 | 44 32 2c 20 41 30 2c 20 |D0, D1, |D2, A0, |
|000011b0| 61 6e 64 20 41 31 2c 20 | 62 75 74 20 6d 75 73 74 |and A1, |but must|
|000011c0| 20 70 72 65 73 65 72 76 | 65 20 61 6c 6c 20 6f 74 | preserv|e all ot|
|000011d0| 68 65 72 20 72 65 67 69 | 73 74 65 72 73 20 61 63 |her regi|sters ac|
|000011e0| 72 6f 73 73 20 69 74 73 | 20 63 61 6c 6c 2e 0d 46 |ross its| call..F|
|000011f0| 69 65 6c 64 20 64 65 73 | 63 72 69 70 74 69 6f 6e |ield des|cription|
|00001200| 73 0d 6d 65 73 73 61 67 | 65 09 41 20 6d 65 73 73 |s.messag|e.A mess|
|00001210| 61 67 65 20 6e 75 6d 62 | 65 72 2c 20 66 72 6f 6d |age numb|er, from|
|00001220| 20 74 68 65 20 6c 69 73 | 74 20 69 6e 20 74 68 65 | the lis|t in the|
|00001230| 20 73 65 63 74 69 6f 6e | 20 d2 43 6f 6e 74 72 6f | section| .Contro|
|00001240| 6c 20 53 74 72 69 70 20 | 4d 6f 64 75 6c 65 20 4d |l Strip |Module M|
|00001250| 65 73 73 61 67 65 73 d3 | 2c 20 74 68 61 74 20 74 |essages.|, that t|
|00001260| 65 6c 6c 73 20 74 68 65 | 20 6d 6f 64 75 6c 65 20 |ells the| module |
|00001270| 77 68 61 74 20 61 63 74 | 69 6f 6e 20 74 6f 20 70 |what act|ion to p|
|00001280| 65 72 66 6f 72 6d 2e 0d | 70 61 72 61 6d 73 09 54 |erform..|params.T|
|00001290| 68 65 20 72 65 73 75 6c | 74 20 72 65 74 75 72 6e |he resul|t return|
|000012a0| 65 64 20 62 79 20 74 68 | 65 20 69 6e 69 74 69 61 |ed by th|e initia|
|000012b0| 6c 69 7a 65 20 63 61 6c | 6c 20 74 6f 20 74 68 65 |lize cal|l to the|
|000012c0| 20 6d 6f 64 75 6c 65 2e | 20 20 54 68 69 73 20 77 | module.| This w|
|000012d0| 6f 75 6c 64 20 74 79 70 | 69 63 61 6c 6c 79 20 62 |ould typ|ically b|
|000012e0| 65 20 74 68 65 20 68 61 | 6e 64 6c 65 20 74 6f 20 |e the ha|ndle to |
|000012f0| 74 68 65 20 6d 6f 64 75 | 6c 65 d5 73 20 70 72 69 |the modu|le.s pri|
|00001300| 76 61 74 65 20 76 61 72 | 69 61 62 6c 65 73 2e 20 |vate var|iables. |
|00001310| 20 43 6f 6e 74 72 6f 6c | 20 53 74 72 69 70 20 6d | Control| Strip m|
|00001320| 6f 64 75 6c 65 73 20 61 | 72 65 20 63 6f 64 65 20 |odules a|re code |
|00001330| 72 65 73 6f 75 72 63 65 | 73 2c 20 73 6f 20 74 68 |resource|s, so th|
|00001340| 65 79 20 6e 65 65 64 74 | 6f 20 75 73 65 20 74 68 |ey needt|o use th|
|00001350| 65 20 74 65 63 68 6e 69 | 71 75 65 73 20 64 65 73 |e techni|ques des|
|00001360| 63 72 69 62 65 64 20 69 | 6e 20 74 65 63 68 20 6e |cribed i|n tech n|
|00001370| 6f 74 65 20 50 54 20 33 | 35 20 2d 20 53 74 61 6e |ote PT 3|5 - Stan|
|00001380| 64 2d 41 6c 6f 6e 65 20 | 43 6f 64 65 20 41 64 20 |d-Alone |Code Ad |
|00001390| 4e 61 75 73 65 75 6d 20 | 69 6e 20 6f 72 64 65 72 |Nauseum |in order|
|000013a0| 20 74 6f 20 75 73 65 20 | 67 6c 6f 62 61 6c 20 76 | to use |global v|
|000013b0| 61 72 69 61 62 6c 65 73 | 2e 20 20 49 74 20 77 69 |ariables|. It wi|
|000013c0| 6c 6c 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |ll be pa|ssed to |
|000013d0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 6f 6e 20 61 6c |the modu|le on al|
|000013e0| 6c 20 73 75 62 73 65 71 | 75 65 6e 74 20 63 61 6c |l subseq|uent cal|
|000013f0| 6c 73 2e 0d 73 74 61 74 | 75 73 52 65 63 74 09 41 |ls..stat|usRect.A|
|00001400| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 61 20 72 65 | pointer| to a re|
|00001410| 63 74 61 6e 67 6c 65 20 | 64 65 66 69 6e 69 6e 67 |ctangle |defining|
|00001420| 20 74 68 65 20 61 72 65 | 61 20 74 68 61 74 20 61 | the are|a that a|
|00001430| 20 6d 6f 64 75 6c 65 20 | 6d 61 79 20 64 72 61 77 | module |may draw|
|00001440| 20 77 69 74 68 69 6e 2e | 0d 73 74 61 74 75 73 50 | within.|.statusP|
|00001450| 6f 72 74 09 41 20 70 6f | 69 6e 74 65 72 20 74 6f |ort.A po|inter to|
|00001460| 20 74 68 65 20 43 6f 6e | 74 72 6f 6c 20 53 74 72 | the Con|trol Str|
|00001470| 69 70 d5 73 20 67 72 61 | 70 68 69 63 73 20 70 6f |ip.s gra|phics po|
|00001480| 72 74 2e 20 54 68 69 73 | 20 77 69 6c 6c 20 62 65 |rt. This| will be|
|00001490| 20 65 69 74 68 65 72 20 | 61 20 63 6f 6c 6f 72 20 | either |a color |
|000014a0| 6f 72 20 62 6c 61 63 6b | 2d 61 6e 64 2d 77 68 69 |or black|-and-whi|
|000014b0| 74 65 20 67 72 61 70 68 | 69 63 73 20 70 6f 72 74 |te graph|ics port|
|000014c0| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 77 68 | dependi|ng on wh|
|000014d0| 69 63 68 20 50 6f 77 65 | 72 42 6f 6f 6b 20 4d 6f |ich Powe|rBook Mo|
|000014e0| 64 65 6c 20 74 68 65 20 | 43 6f 6e 74 72 6f 6c 20 |del the |Control |
|000014f0| 53 74 72 69 70 20 69 73 | 20 72 75 6e 6e 69 6e 67 |Strip is| running|
|00001500| 20 6f 6e 2e 0d 54 68 65 | 20 72 65 73 75 6c 74 20 | on..The| result |
|00001510| 76 61 6c 75 65 20 72 65 | 74 75 72 6e 65 64 20 62 |value re|turned b|
|00001520| 79 20 74 68 65 20 6d 6f | 64 75 6c 65 20 77 69 6c |y the mo|dule wil|
|00001530| 6c 20 76 61 72 79 20 64 | 65 70 65 6e 64 69 6e 67 |l vary d|epending|
|00001540| 20 6f 6e 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 | on the |message |
|00001550| 73 65 6e 74 20 74 6f 20 | 69 74 2e 20 20 52 65 73 |sent to |it. Res|
|00001560| 75 6c 74 73 20 66 6f 72 | 20 65 61 63 68 20 6d 65 |ults for| each me|
|00001570| 73 73 61 67 65 20 61 72 | 65 20 64 65 73 63 72 69 |ssage ar|e descri|
|00001580| 62 65 64 20 69 6e 20 74 | 68 65 20 73 65 63 74 69 |bed in t|he secti|
|00001590| 6f 6e 73 20 6f 6e 20 74 | 68 65 20 69 6e 64 69 76 |ons on t|he indiv|
|000015a0| 69 64 75 61 6c 20 6d 65 | 73 73 61 67 65 73 2e 0d |idual me|ssages..|
|000015b0| 4d 6f 64 75 6c 65 20 52 | 65 65 6e 74 72 61 6e 63 |Module R|eentranc|
|000015c0| 79 0d 41 6e 79 20 6d 6f | 64 75 6c 65 20 74 68 61 |y.Any mo|dule tha|
|000015d0| 74 20 6d 61 6b 65 73 20 | 63 61 6c 6c 73 20 74 6f |t makes |calls to|
|000015e0| 20 72 6f 75 74 69 6e 65 | 73 20 73 75 63 68 20 61 | routine|s such a|
|000015f0| 73 20 47 65 74 4e 65 78 | 74 45 76 65 6e 74 2c 20 |s GetNex|tEvent, |
|00001600| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 20 6f 72 20 50 |ModalDia|log or P|
|00001610| 6f 70 55 70 4d 65 6e 75 | 53 65 6c 65 63 74 20 73 |opUpMenu|Select s|
|00001620| 68 6f 75 6c 64 20 61 73 | 73 75 6d 65 20 74 68 61 |hould as|sume tha|
|00001630| 74 20 69 74 20 63 6f 75 | 6c 64 20 62 65 20 63 61 |t it cou|ld be ca|
|00001640| 6c 6c 65 64 20 72 65 65 | 6e 74 72 61 6e 74 6c 79 |lled ree|ntrantly|
|00001650| 3b 20 74 68 61 74 20 69 | 73 2c 20 74 68 65 20 6d |; that i|s, the m|
|00001660| 6f 64 75 6c 65 20 63 6f | 75 6c 64 20 62 65 20 63 |odule co|uld be c|
|00001670| 61 6c 6c 65 64 20 61 67 | 61 69 6e 20 77 68 69 6c |alled ag|ain whil|
|00001680| 65 20 74 68 65 20 69 6e | 69 74 69 61 6c 20 63 61 |e the in|itial ca|
|00001690| 6c 6c 20 69 73 20 73 74 | 69 6c 6c 20 69 6e 20 70 |ll is st|ill in p|
|000016a0| 72 6f 67 72 65 73 73 2e | 20 20 53 69 74 75 61 74 |rogress.| Situat|
|000016b0| 69 6f 6e 73 20 74 6f 20 | 61 76 6f 69 64 20 61 72 |ions to |avoid ar|
|000016c0| 65 20 73 75 63 68 20 74 | 68 69 6e 67 73 20 61 73 |e such t|hings as|
|000016d0| 20 72 65 75 73 69 6e 67 | 20 61 20 73 69 6e 67 6c | reusing| a singl|
|000016e0| 65 20 70 61 72 61 6d 65 | 74 65 72 20 62 6c 6f 63 |e parame|ter bloc|
|000016f0| 6b 20 66 6f 72 20 6d 75 | 6c 74 69 70 6c 65 20 63 |k for mu|ltiple c|
|00001700| 61 6c 6c 73 2e 20 20 0d | 49 6e 73 74 65 61 64 20 |alls. .|Instead |
|00001710| 6f 66 20 75 73 69 6e 67 | 20 61 20 73 69 6e 67 6c |of using| a singl|
|00001720| 65 20 70 61 72 61 6d 65 | 74 65 72 20 62 6c 6f 63 |e parame|ter bloc|
|00001730| 6b 2c 20 69 74 d5 73 20 | 62 65 74 74 65 72 2c 20 |k, it.s |better, |
|00001740| 69 66 20 70 6f 73 73 69 | 62 6c 65 2c 20 74 6f 20 |if possi|ble, to |
|00001750| 61 6c 6c 6f 63 61 74 65 | 20 74 68 65 20 70 61 72 |allocate| the par|
|00001760| 61 6d 65 74 65 72 20 62 | 6c 6f 63 6b 20 6f 6e 20 |ameter b|lock on |
|00001770| 74 68 65 20 73 74 61 63 | 6b 2e 20 20 49 6e 20 74 |the stac|k. In t|
|00001780| 68 65 20 63 61 73 65 20 | 6f 66 20 61 73 79 6e 63 |he case |of async|
|00001790| 68 72 6f 6e 6f 75 73 20 | 63 61 6c 6c 73 2c 20 75 |hronous |calls, u|
|000017a0| 73 69 6e 67 20 74 68 65 | 20 73 74 61 63 6b 20 63 |sing the| stack c|
|000017b0| 6f 75 6c 64 20 63 61 75 | 73 65 20 70 72 6f 62 6c |ould cau|se probl|
|000017c0| 65 6d 73 3b 20 69 6e 20 | 74 68 61 74 20 63 61 73 |ems; in |that cas|
|000017d0| 65 2c 20 70 72 65 76 65 | 6e 74 69 6e 67 20 74 68 |e, preve|nting th|
|000017e0| 65 20 62 6c 6f 63 6b d5 | 73 20 72 65 75 73 65 20 |e block.|s reuse |
|000017f0| 73 68 6f 75 6c 64 20 62 | 65 20 73 75 66 66 69 63 |should b|e suffic|
|00001800| 69 65 6e 74 2e 20 20 0d | 49 66 20 79 6f 75 20 6e |ient. .|If you n|
|00001810| 65 65 64 20 74 6f 20 6c | 6f 63 6b 20 61 6e 64 20 |eed to l|ock and |
|00001820| 75 6e 6c 6f 63 6b 20 79 | 6f 75 72 20 67 6c 6f 62 |unlock y|our glob|
|00001830| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 2c 20 69 74 |al varia|bles, it|
|00001840| d5 73 20 62 65 74 74 65 | 72 20 74 6f 20 75 73 65 |.s bette|r to use|
|00001850| 20 48 47 65 74 53 74 61 | 74 65 20 61 6e 64 20 48 | HGetSta|te and H|
|00001860| 4c 6f 63 6b 20 61 74 20 | 74 68 65 20 62 65 67 69 |Lock at |the begi|
|00001870| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 63 61 6c |nning of| the cal|
|00001880| 6c 2c 20 61 6e 64 20 48 | 53 65 74 53 74 61 74 65 |l, and H|SetState|
|00001890| 20 61 74 20 74 68 65 20 | 65 6e 64 2c 20 73 6f 20 | at the |end, so |
|000018a0| 74 68 61 74 20 74 68 65 | 20 73 74 61 74 65 20 69 |that the| state i|
|000018b0| 73 20 72 65 73 74 6f 72 | 65 64 20 74 6f 20 77 68 |s restor|ed to wh|
|000018c0| 61 74 20 69 74 20 77 61 | 73 20 6f 6e 20 65 6e 74 |at it wa|s on ent|
|000018d0| 72 79 2e 20 0d 43 6f 6e | 74 72 6f 6c 20 53 74 72 |ry. .Con|trol Str|
|000018e0| 69 70 20 4d 6f 64 75 6c | 65 20 52 65 66 65 72 65 |ip Modul|e Refere|
|000018f0| 6e 63 65 0d 43 6f 6e 74 | 72 6f 6c 20 73 74 72 69 |nce.Cont|rol stri|
|00001900| 70 20 6d 6f 64 75 6c 65 | 73 20 69 6e 74 65 72 61 |p module|s intera|
|00001910| 63 74 20 77 69 74 68 20 | 74 68 65 20 43 6f 6e 74 |ct with |the Cont|
|00001920| 72 6f 6c 20 53 74 72 69 | 70 20 73 6f 66 74 77 61 |rol Stri|p softwa|
|00001930| 72 65 20 69 6e 20 74 68 | 72 65 65 20 77 61 79 73 |re in th|ree ways|
|00001940| 3a 20 62 79 20 61 63 63 | 65 70 74 69 6e 67 20 6d |: by acc|epting m|
|00001950| 65 73 73 61 67 65 73 2c | 20 62 79 20 63 61 6c 6c |essages,| by call|
|00001960| 69 6e 67 20 75 74 69 6c | 69 74 79 20 72 6f 75 74 |ing util|ity rout|
|00001970| 69 6e 65 73 2c 20 61 6e | 64 20 62 79 20 63 61 6c |ines, an|d by cal|
|00001980| 6c 69 6e 67 20 47 65 73 | 74 61 6c 74 20 73 65 6c |ling Ges|talt sel|
|00001990| 65 63 74 6f 72 73 2e 20 | 54 68 65 20 6e 65 78 74 |ectors. |The next|
|000019a0| 20 74 68 72 65 65 20 73 | 65 63 74 69 6f 6e 73 20 | three s|ections |
|000019b0| 64 65 73 63 72 69 62 65 | 20 65 61 63 68 20 6f 66 |describe| each of|
|000019c0| 20 74 68 6f 73 65 20 69 | 6e 74 65 72 61 63 74 69 | those i|nteracti|
|000019d0| 6f 6e 73 2e 20 0d 43 6f | 6e 74 72 6f 6c 20 53 74 |ons. .Co|ntrol St|
|000019e0| 72 69 70 20 4d 6f 64 75 | 6c 65 20 4d 65 73 73 61 |rip Modu|le Messa|
|000019f0| 67 65 73 20 0d 41 6c 6c | 20 43 6f 6e 74 72 6f 6c |ges .All| Control|
|00001a00| 20 53 74 72 69 70 20 6d | 6f 64 75 6c 65 73 20 6d | Strip m|odules m|
|00001a10| 75 73 74 20 72 65 73 70 | 6f 6e 64 20 74 6f 20 6d |ust resp|ond to m|
|00001a20| 65 73 73 61 67 65 73 20 | 66 72 6f 6d 20 74 68 65 |essages |from the|
|00001a30| 20 43 6f 6e 74 72 6f 6c | 20 53 74 72 69 70 2e 20 | Control| Strip. |
|00001a40| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |The foll|owing me|
|00001a50| 73 73 61 67 65 73 20 68 | 61 76 65 20 62 65 65 6e |ssages h|ave been|
|00001a60| 20 64 65 66 69 6e 65 64 | 3a 20 0d 4d 65 73 73 61 | defined|: .Messa|
|00001a70| 67 65 20 6e 61 6d 65 09 | 6e 75 6d 62 65 72 09 44 |ge name.|number.D|
|00001a80| 65 73 63 72 69 70 74 69 | 6f 6e 09 0d 73 64 65 76 |escripti|on..sdev|
|00001a90| 49 6e 69 74 4d 6f 64 75 | 6c 65 09 30 09 49 6e 69 |InitModu|le.0.Ini|
|00001aa0| 74 69 61 6c 69 7a 65 20 | 74 68 65 20 6d 6f 64 75 |tialize |the modu|
|00001ab0| 6c 65 09 0d 73 64 65 76 | 43 6c 6f 73 65 4d 6f 64 |le..sdev|CloseMod|
|00001ac0| 75 6c 65 09 31 09 43 6c | 65 61 6e 20 75 70 20 62 |ule.1.Cl|ean up b|
|00001ad0| 65 66 6f 72 65 20 62 65 | 69 6e 67 20 63 6c 6f 73 |efore be|ing clos|
|00001ae0| 65 64 09 0d 73 64 65 76 | 46 65 61 74 75 72 65 73 |ed..sdev|Features|
|00001af0| 09 32 09 52 65 74 75 72 | 6e 20 74 68 65 20 66 65 |.2.Retur|n the fe|
|00001b00| 61 74 75 72 65 20 62 69 | 74 73 09 0d 73 64 65 76 |ature bi|ts..sdev|
|00001b10| 47 65 74 44 69 73 70 6c | 61 79 57 69 64 74 68 09 |GetDispl|ayWidth.|
|00001b20| 33 09 52 65 74 75 72 6e | 20 74 68 65 20 77 69 64 |3.Return| the wid|
|00001b30| 74 68 20 6f 66 20 74 68 | 65 20 6d 6f 64 75 6c 65 |th of th|e module|
|00001b40| d5 73 20 64 69 73 70 6c | 61 79 09 0d 73 64 65 76 |.s displ|ay..sdev|
|00001b50| 50 65 72 69 6f 64 69 63 | 54 69 63 6b 6c 65 09 34 |Periodic|Tickle.4|
|00001b60| 09 50 65 72 69 6f 64 69 | 63 61 6c 6c 79 20 63 61 |.Periodi|cally ca|
|00001b70| 6c 6c 65 64 20 77 68 65 | 6e 20 6e 6f 74 68 69 6e |lled whe|n nothin|
|00001b80| 67 20 65 6c 73 65 20 69 | 73 20 68 61 70 70 65 6e |g else i|s happen|
|00001b90| 69 6e 67 09 0d 73 64 65 | 76 44 72 61 77 53 74 61 |ing..sde|vDrawSta|
|00001ba0| 74 75 73 09 35 09 55 70 | 64 61 74 65 20 74 68 65 |tus.5.Up|date the|
|00001bb0| 20 69 6e 74 65 72 66 61 | 63 65 20 69 6e 20 74 68 | interfa|ce in th|
|00001bc0| 65 20 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 09 |e Contro|l Strip.|
|00001bd0| 0d 73 64 65 76 4d 6f 75 | 73 65 43 6c 69 63 6b 09 |.sdevMou|seClick.|
|00001be0| 36 09 55 73 65 72 20 68 | 61 73 20 63 6c 69 63 6b |6.User h|as click|
|00001bf0| 65 64 20 6f 6e 20 74 68 | 65 20 6d 6f 64 75 6c 65 |ed on th|e module|
|00001c00| d5 73 20 64 69 73 70 6c | 61 79 20 61 72 65 61 09 |.s displ|ay area.|
|00001c10| 0d 73 64 65 76 53 61 76 | 65 53 65 74 74 69 6e 67 |.sdevSav|eSetting|
|00001c20| 73 09 37 09 53 61 76 65 | 20 61 6e 79 20 63 68 61 |s.7.Save| any cha|
|00001c30| 6e 67 65 64 20 73 65 74 | 74 69 6e 67 73 20 69 6e |nged set|tings in|
|00001c40| 20 74 68 65 20 6d 6f 64 | 75 6c 65 d5 73 20 70 72 | the mod|ule.s pr|
|00001c50| 65 66 65 72 65 6e 63 65 | 73 20 66 69 6c 65 0d 73 |eference|s file.s|
|00001c60| 64 65 76 53 68 6f 77 42 | 61 6c 6c 6f 6f 6e 48 65 |devShowB|alloonHe|
|00001c70| 6c 70 09 38 09 44 69 73 | 70 6c 61 79 20 61 20 68 |lp.8.Dis|play a h|
|00001c80| 65 6c 70 20 62 61 6c 6c | 6f 6f 6e 2c 20 69 66 20 |elp ball|oon, if |
|00001c90| 74 68 65 20 6d 6f 64 75 | 6c 65 20 68 61 73 20 6f |the modu|le has o|
|00001ca0| 6e 65 20 09 0d 20 0d 73 | 64 65 76 49 6e 69 74 4d |ne .. .s|devInitM|
|00001cb0| 6f 64 75 6c 65 20 0d 54 | 68 65 20 73 64 65 76 49 |odule .T|he sdevI|
|00001cc0| 6e 69 74 4d 6f 64 75 6c | 65 20 6d 65 73 73 61 67 |nitModul|e messag|
|00001cd0| 65 20 69 73 20 74 68 65 | 20 66 69 72 73 74 20 6d |e is the| first m|
|00001ce0| 65 73 73 61 67 65 20 73 | 65 6e 74 20 74 6f 20 61 |essage s|ent to a|
|00001cf0| 20 6d 6f 64 75 6c 65 20 | 61 66 74 65 72 20 74 68 | module |after th|
|00001d00| 65 20 6d 6f 64 75 6c 65 | 20 68 61 73 20 62 65 65 |e module| has bee|
|00001d10| 6e 20 6c 6f 61 64 65 64 | 20 66 72 6f 6d 20 69 74 |n loaded| from it|
|00001d20| 73 20 66 69 6c 65 2e 20 | 20 49 6e 69 74 69 61 6c |s file. | Initial|
|00001d30| 69 7a 61 74 69 6f 6e 20 | 61 6c 6c 6f 77 73 20 74 |ization |allows t|
|00001d40| 68 65 20 6d 6f 64 75 6c | 65 20 74 6f 20 69 6e 69 |he modul|e to ini|
|00001d50| 74 69 61 6c 69 7a 65 20 | 69 74 73 20 76 61 72 69 |tialize |its vari|
|00001d60| 61 62 6c 65 73 20 61 6e | 64 20 74 6f 20 64 65 74 |ables an|d to det|
|00001d70| 65 72 6d 69 6e 65 20 77 | 68 65 74 68 65 72 20 69 |ermine w|hether i|
|00001d80| 74 20 63 61 6e 20 72 75 | 6e 20 6f 6e 20 61 20 70 |t can ru|n on a p|
|00001d90| 61 72 74 69 63 75 6c 61 | 72 20 6d 61 63 68 69 6e |articula|r machin|
|00001da0| 65 3a 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |e: for e|xample, |
|00001db0| 69 66 20 74 68 65 20 6d | 6f 64 75 6c 65 d5 73 20 |if the m|odule.s |
|00001dc0| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 74 6f 20 64 |function| is to d|
|00001dd0| 69 73 70 6c 61 79 20 62 | 61 74 74 65 72 79 20 69 |isplay b|attery i|
|00001de0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 74 20 63 61 |nformati|on it ca|
|00001df0| 6e 20 72 75 6e 20 6f 6e | 6c 79 20 6f 6e 20 61 20 |n run on|ly on a |
|00001e00| 50 6f 77 65 72 42 6f 6f | 6b 2e 0d 54 68 65 20 6d |PowerBoo|k..The m|
|00001e10| 6f 64 75 6c 65 20 6e 65 | 65 64 73 20 74 6f 20 6c |odule ne|eds to l|
|00001e20| 6f 61 64 20 61 6e 64 20 | 64 65 74 61 63 68 20 61 |oad and |detach a|
|00001e30| 6e 79 20 72 65 73 6f 75 | 72 63 65 73 20 69 6e 20 |ny resou|rces in |
|00001e40| 74 68 65 20 6d 6f 64 75 | 6c 65 d5 73 20 72 65 73 |the modu|le.s res|
|00001e50| 6f 75 72 63 65 20 66 69 | 6c 65 20 74 68 61 74 20 |ource fi|le that |
|00001e60| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 2c 20 62 65 |will be |used, be|
|00001e70| 63 61 75 73 65 20 74 68 | 65 20 72 65 73 6f 75 72 |cause th|e resour|
|00001e80| 63 65 20 66 69 6c 65 20 | 77 69 6c 6c 20 6e 6f 74 |ce file |will not|
|00001e90| 20 62 65 20 6b 65 70 74 | 20 70 65 72 6d 61 6e 65 | be kept| permane|
|00001ea0| 6e 74 6c 79 20 6f 70 65 | 6e 2e 20 57 68 61 74 20 |ntly ope|n. What |
|00001eb0| 74 68 61 74 20 6d 65 61 | 6e 73 20 69 73 20 74 68 |that mea|ns is th|
|00001ec0| 61 74 20 79 6f 75 72 20 | 63 6f 64 65 20 63 61 6e |at your |code can|
|00001ed0| 27 74 20 75 73 65 20 47 | 65 74 52 65 73 6f 75 72 |'t use G|etResour|
|00001ee0| 63 65 28 29 20 6f 72 20 | 74 68 65 20 6c 69 6b 65 |ce() or |the like|
|00001ef0| 20 74 6f 20 72 65 74 72 | 69 65 76 65 20 74 68 65 | to retr|ieve the|
|00001f00| 20 68 61 6e 64 6c 65 20 | 74 6f 20 6f 6e 65 20 6f | handle |to one o|
|00001f10| 66 20 74 68 65 20 6d 6f | 64 75 6c 65 27 73 20 72 |f the mo|dule's r|
|00001f20| 65 73 6f 75 72 63 65 73 | 20 6f 6e 20 61 20 73 75 |esources| on a su|
|00001f30| 62 73 65 71 75 65 6e 74 | 20 63 61 6c 6c 2e 20 20 |bsequent| call. |
|00001f40| 54 79 70 69 63 61 6c 6c | 79 20 79 6f 75 20 77 6f |Typicall|y you wo|
|00001f50| 75 6c 64 20 61 6c 6c 6f | 63 61 74 65 20 73 70 61 |uld allo|cate spa|
|00001f60| 63 65 20 69 6e 20 79 6f | 75 72 20 67 6c 6f 62 61 |ce in yo|ur globa|
|00001f70| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 66 6f 72 20 |l variab|les for |
|00001f80| 68 61 6e 64 6c 65 73 20 | 74 6f 20 74 68 6f 73 65 |handles |to those|
|00001f90| 20 64 65 74 61 63 68 65 | 64 20 72 65 73 6f 75 72 | detache|d resour|
|00001fa0| 63 65 73 2e 0d 54 68 65 | 20 73 64 65 76 49 6e 69 |ces..The| sdevIni|
|00001fb0| 74 4d 6f 64 75 6c 65 20 | 6d 65 73 73 61 67 65 20 |tModule |message |
|00001fc0| 72 65 74 75 72 6e 73 20 | 61 20 72 65 73 75 6c 74 |returns |a result|
|00001fd0| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 69 74 | dependi|ng on it|
|00001fe0| 73 20 73 75 63 63 65 73 | 73 20 61 74 20 69 6e 73 |s succes|s at ins|
|00001ff0| 74 61 6c 6c 69 6e 67 20 | 69 74 73 65 6c 66 2e 20 |talling |itself. |
|00002000| 20 41 20 70 6f 73 69 74 | 69 76 65 20 72 65 73 75 | A posit|ive resu|
|00002010| 6c 74 20 28 b3 30 29 20 | 69 6e 64 69 63 61 74 65 |lt (.0) |indicate|
|00002020| 73 20 73 75 63 63 65 73 | 73 66 75 6c 20 69 6e 73 |s succes|sful ins|
|00002030| 74 61 6c 6c 61 74 69 6f | 6e 2e 20 20 54 68 69 73 |tallatio|n. This|
|00002040| 20 72 65 73 75 6c 74 20 | 76 61 6c 75 65 20 77 69 | result |value wi|
|00002050| 6c 6c 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |ll be pa|ssed to |
|00002060| 74 68 65 20 6d 6f 64 75 | 6c 65 20 6f 6e 20 61 6c |the modu|le on al|
|00002070| 6c 20 73 75 62 73 65 71 | 75 65 6e 74 20 63 61 6c |l subseq|uent cal|
|00002080| 6c 73 2e 20 20 41 20 6e | 65 67 61 74 69 76 65 20 |ls. A n|egative |
|00002090| 72 65 73 75 6c 74 20 69 | 6e 64 69 63 61 74 65 73 |result i|ndicates|
|000020a0| 20 61 6e 20 65 72 72 6f | 72 20 63 6f 6e 64 69 74 | an erro|r condit|
|000020b0| 69 6f 6e 2c 20 61 6e 64 | 20 69 6e 73 74 61 6c 6c |ion, and| install|
|000020c0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6d 6f 64 |ation of| the mod|
|000020d0| 75 6c 65 20 69 73 20 61 | 62 6f 72 74 65 64 20 62 |ule is a|borted b|
|000020e0| 79 20 74 68 65 20 43 6f | 6e 74 72 6f 6c 20 53 74 |y the Co|ntrol St|
|000020f0| 72 69 70 20 73 6f 66 74 | 77 61 72 65 2e 20 20 54 |rip soft|ware. T|
|00002100| 68 65 20 6d 6f 64 75 6c | 65 20 77 69 6c 6c 20 6e |he modul|e will n|
|00002110| 6f 74 20 72 65 63 65 69 | 76 65 20 61 20 63 6c 6f |ot recei|ve a clo|
|00002120| 73 65 20 6d 65 73 73 61 | 67 65 20 77 68 65 6e 20 |se messa|ge when |
|00002130| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 20 68 61 73 |installa|tion has|
|00002140| 20 62 65 65 6e 20 61 62 | 6f 72 74 65 64 2e 0d 73 | been ab|orted..s|
|00002150| 64 65 76 43 6c 6f 73 65 | 4d 6f 64 75 6c 65 20 0d |devClose|Module .|
|00002160| 54 68 65 20 73 44 65 76 | 43 6c 6f 73 65 4d 6f 64 |The sDev|CloseMod|
|00002170| 75 6c 65 20 6d 65 73 73 | 61 67 65 20 69 73 20 73 |ule mess|age is s|
|00002180| 65 6e 74 20 74 6f 20 61 | 20 6d 6f 64 75 6c 65 20 |ent to a| module |
|00002190| 77 68 65 6e 20 69 74 20 | 73 68 6f 75 6c 64 20 62 |when it |should b|
|000021a0| 65 20 63 6c 6f 73 65 64 | 2e 20 20 54 79 70 69 63 |e closed|. Typic|
|000021b0| 61 6c 6c 79 20 74 68 65 | 20 6d 6f 64 75 6c 65 20 |ally the| module |
|000021c0| 69 74 73 65 6c 66 20 77 | 69 6c 6c 20 64 65 63 69 |itself w|ill deci|
|000021d0| 64 65 20 77 68 65 6e 20 | 74 68 69 73 20 6f 75 67 |de when |this oug|
|000021e0| 68 74 20 74 6f 20 68 61 | 70 70 65 6e 2e 20 20 57 |ht to ha|ppen. W|
|000021f0| 68 65 6e 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 72 |hen the |module r|
|00002200| 65 63 65 69 76 65 73 20 | 74 68 69 73 20 6d 65 73 |eceives |this mes|
|00002210| 73 61 67 65 2c 20 69 74 | 20 73 68 6f 75 6c 64 20 |sage, it| should |
|00002220| 64 69 73 70 6f 73 65 20 | 6f 66 20 61 6c 6c 20 74 |dispose |of all t|
|00002230| 68 65 20 64 65 74 61 63 | 68 65 64 20 72 65 73 6f |he detac|hed reso|
|00002240| 75 72 63 65 73 20 69 74 | 20 6c 6f 61 64 65 64 20 |urces it| loaded |
|00002250| 61 73 20 77 65 6c 6c 20 | 61 73 20 69 74 73 20 67 |as well |as its g|
|00002260| 6c 6f 62 61 6c 20 73 74 | 6f 72 61 67 65 2e 20 20 |lobal st|orage. |
|00002270| 4e 6f 20 72 65 73 75 6c | 74 20 69 73 20 65 78 70 |No resul|t is exp|
|00002280| 65 63 74 65 64 2e 0d 73 | 64 65 76 46 65 61 74 75 |ected..s|devFeatu|
|00002290| 72 65 73 20 0d 54 68 65 | 20 73 64 65 76 46 65 61 |res .The| sdevFea|
|000022a0| 74 75 72 65 73 20 6d 65 | 73 73 61 67 65 20 71 75 |tures me|ssage qu|
|000022b0| 65 72 69 65 73 20 74 68 | 65 20 6d 6f 64 75 6c 65 |eries th|e module|
|000022c0| 20 66 6f 72 20 74 68 65 | 20 66 65 61 74 75 72 65 | for the| feature|
|000022d0| 73 20 69 74 20 73 75 70 | 70 6f 72 74 73 2e 20 20 |s it sup|ports. |
|000022e0| 49 74 20 72 65 74 75 72 | 6e 73 20 61 73 20 69 74 |It retur|ns as it|
|000022f0| 73 20 72 65 73 75 6c 74 | 20 61 20 6c 6f 6e 67 20 |s result| a long |
|00002300| 63 6f 6e 73 69 73 74 69 | 6e 67 20 6f 66 20 31 20 |consisti|ng of 1 |
|00002310| 62 69 74 73 20 66 6f 72 | 20 73 75 70 70 6f 72 74 |bits for| support|
|00002320| 65 64 20 66 65 61 74 75 | 72 65 73 20 61 6e 64 20 |ed featu|res and |
|00002330| 30 20 62 69 74 73 20 66 | 6f 72 20 75 6e 73 75 70 |0 bits f|or unsup|
|00002340| 70 6f 72 74 65 64 20 66 | 65 61 74 75 72 65 73 2e |ported f|eatures.|
|00002350| 20 20 41 6c 6c 20 75 6e | 64 65 66 69 6e 65 64 20 | All un|defined |
|00002360| 62 69 74 73 20 61 72 65 | 20 72 65 73 65 72 76 65 |bits are| reserve|
|00002370| 64 20 62 79 20 41 70 70 | 6c 65 20 66 6f 72 20 66 |d by App|le for f|
|00002380| 75 74 75 72 65 20 66 65 | 61 74 75 72 65 73 2c 20 |uture fe|atures, |
|00002390| 61 6e 64 20 6d 75 73 74 | 20 62 65 20 73 65 74 20 |and must| be set |
|000023a0| 74 6f 20 30 2e 20 20 54 | 68 65 20 62 69 74 73 20 |to 0. T|he bits |
|000023b0| 61 72 65 20 64 65 66 69 | 6e 65 64 20 61 73 20 0d |are defi|ned as .|
|000023c0| 73 64 65 76 57 61 6e 74 | 4d 6f 75 73 65 43 6c 69 |sdevWant|MouseCli|
|000023d0| 63 6b 73 09 30 09 49 66 | 20 74 68 69 73 20 62 69 |cks.0.If| this bi|
|000023e0| 74 20 69 73 20 73 65 74 | 2c 20 74 68 65 20 43 6f |t is set|, the Co|
|000023f0| 6e 74 72 6f 6c 20 53 74 | 72 69 70 20 77 69 6c 6c |ntrol St|rip will|
|00002400| 20 6e 6f 74 69 66 79 20 | 74 68 65 20 6d 6f 64 75 | notify |the modu|
|00002410| 6c 65 20 6f 66 20 6d 6f | 75 73 65 20 64 6f 77 6e |le of mo|use down|
|00002420| 20 65 76 65 6e 74 73 2e | 20 20 49 66 20 74 68 69 | events.| If thi|
|00002430| 73 20 62 69 74 20 69 73 | 20 6e 6f 74 20 73 65 74 |s bit is| not set|
|00002440| 2c 20 74 68 65 20 43 6f | 6e 74 72 6f 6c 20 53 74 |, the Co|ntrol St|
|00002450| 72 69 70 20 61 73 73 75 | 6d 65 73 20 74 68 61 74 |rip assu|mes that|
|00002460| 20 74 68 65 20 6d 6f 64 | 75 6c 65 20 6f 6e 6c 79 | the mod|ule only|
|00002470| 20 64 69 73 70 6c 61 79 | 73 20 73 74 61 74 75 73 | display|s status|
|00002480| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 77 69 74 | informa|tion wit|
|00002490| 68 20 6e 6f 20 75 73 65 | 72 20 69 6e 74 65 72 61 |h no use|r intera|
|000024a0| 63 74 69 6f 6e 2e 0d 73 | 64 65 76 44 6f 6e 74 41 |ction..s|devDontA|
|000024b0| 75 74 6f 54 72 61 63 6b | 09 31 09 49 66 20 74 68 |utoTrack|.1.If th|
|000024c0| 69 73 20 62 69 74 20 69 | 73 20 73 65 74 2c 20 74 |is bit i|s set, t|
|000024d0| 68 65 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |he Contr|ol Strip|
|000024e0| 20 68 69 67 68 6c 69 67 | 68 74 73 20 74 68 65 20 | highlig|hts the |
|000024f0| 6d 6f 64 75 6c 65 d5 73 | 20 64 69 73 70 6c 61 79 |module.s| display|
|00002500| 20 61 6e 64 20 74 68 65 | 6e 20 63 61 6c 6c 73 20 | and the|n calls |
|00002510| 74 68 65 20 6d 6f 64 75 | 6c 65 20 74 6f 20 70 65 |the modu|le to pe|
|00002520| 72 66 6f 72 6d 20 6d 6f | 75 73 65 20 74 72 61 63 |rform mo|use trac|
|00002530| 6b 69 6e 67 3b 20 74 68 | 69 73 20 62 69 74 20 69 |king; th|is bit i|
|00002540| 73 20 75 73 75 61 6c 6c | 79 20 73 65 74 20 77 68 |s usuall|y set wh|
|00002550| 65 6e 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |en, for |example,|
|00002560| 20 61 20 6d 6f 64 75 6c | 65 20 68 61 73 20 61 20 | a modul|e has a |
|00002570| 70 6f 70 2d 75 70 20 6d | 65 6e 75 20 61 73 73 6f |pop-up m|enu asso|
|00002580| 63 69 61 74 65 64 20 77 | 69 74 68 20 69 74 2e 20 |ciated w|ith it. |
|00002590| 20 49 66 20 74 68 69 73 | 20 62 69 74 20 69 73 20 | If this| bit is |
|000025a0| 63 6c 65 61 72 65 64 2c | 20 74 68 65 20 43 6f 6e |cleared,| the Con|
|000025b0| 74 72 6f 6c 20 53 74 72 | 69 70 20 74 72 61 63 6b |trol Str|ip track|
|000025c0| 73 20 74 68 65 20 63 75 | 72 73 6f 72 20 75 6e 74 |s the cu|rsor unt|
|000025d0| 69 6c 20 74 68 65 20 6d | 6f 75 73 65 20 62 75 74 |il the m|ouse but|
|000025e0| 74 6f 6e 20 69 73 20 72 | 65 6c 65 61 73 65 64 2c |ton is r|eleased,|
|000025f0| 20 74 68 65 6e 20 73 65 | 6e 64 73 20 61 6e 20 73 | then se|nds an s|
|00002600| 64 65 76 4d 6f 75 73 65 | 43 6c 69 63 6b 20 6d 65 |devMouse|Click me|
|00002610| 73 73 61 67 65 20 74 6f | 20 74 68 65 20 6d 6f 64 |ssage to| the mod|
|00002620| 75 6c 65 20 74 6f 20 6e | 6f 74 69 66 79 20 69 74 |ule to n|otify it|
|00002630| 20 74 68 61 74 20 74 68 | 65 72 65 20 77 61 73 20 | that th|ere was |
|00002640| 61 20 6d 6f 75 73 65 2d | 64 6f 77 6e 20 65 76 65 |a mouse-|down eve|
|00002650| 6e 74 2e 0d 73 64 65 76 | 48 61 73 43 75 73 74 6f |nt..sdev|HasCusto|
|00002660| 6d 48 65 6c 70 09 32 09 | 49 66 20 74 68 69 73 20 |mHelp.2.|If this |
|00002670| 62 69 74 20 69 73 20 73 | 65 74 2c 20 74 68 65 20 |bit is s|et, the |
|00002680| 6d 6f 64 75 6c 65 20 69 | 73 20 72 65 73 70 6f 6e |module i|s respon|
|00002690| 73 69 62 6c 65 20 66 6f | 72 20 64 69 73 70 6c 61 |sible fo|r displa|
|000026a0| 79 69 6e 67 20 69 74 73 | 20 6f 77 6e 20 68 65 6c |ying its| own hel|
|000026b0| 70 20 6d 65 73 73 61 67 | 65 73 2c 20 77 68 69 63 |p messag|es, whic|
|000026c0| 68 20 63 61 6e 20 62 65 | 20 63 75 73 74 6f 6d 69 |h can be| customi|
|000026d0| 7a 65 64 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |zed depe|nding on|
|000026e0| 20 69 74 73 20 63 75 72 | 72 65 6e 74 20 73 74 61 | its cur|rent sta|
|000026f0| 74 65 2e 20 20 49 66 20 | 74 68 65 20 62 69 74 20 |te. If |the bit |
|00002700| 69 73 20 63 6c 65 61 72 | 65 64 2c 20 74 68 65 20 |is clear|ed, the |
|00002710| 43 6f 6e 74 72 6f 6c 20 | 53 74 72 69 70 20 77 69 |Control |Strip wi|
|00002720| 6c 6c 20 64 69 73 70 6c | 61 79 20 61 20 67 65 6e |ll displ|ay a gen|
|00002730| 65 72 69 63 20 68 65 6c | 70 20 6d 65 73 73 61 67 |eric hel|p messag|
|00002740| 65 20 77 68 65 6e 20 74 | 68 65 20 63 75 72 73 6f |e when t|he curso|
|00002750| 72 20 70 61 73 73 65 73 | 20 6f 76 65 72 20 74 68 |r passes| over th|
|00002760| 65 20 6d 6f 64 75 6c 65 | d5 73 20 64 69 73 70 6c |e module|.s displ|
|00002770| 61 79 20 61 72 65 61 20 | 61 6e 64 20 42 61 6c 6c |ay area |and Ball|
|00002780| 6f 6f 6e 20 48 65 6c 70 | 20 69 73 20 6f 6e 2e 0d |oon Help| is on..|
|00002790| 73 64 65 76 4b 65 65 70 | 4d 6f 64 75 6c 65 4c 6f |sdevKeep|ModuleLo|
|000027a0| 63 6b 65 64 09 33 09 49 | 66 20 74 68 69 73 20 62 |cked.3.I|f this b|
|000027b0| 69 74 20 69 73 20 73 65 | 74 2c 20 74 68 65 20 6d |it is se|t, the m|
|000027c0| 6f 64 75 6c 65 d5 73 20 | 63 6f 64 65 20 77 69 6c |odule.s |code wil|
|000027d0| 6c 20 62 65 20 6b 65 70 | 74 20 6c 6f 63 6b 65 64 |l be kep|t locked|
|000027e0| 20 69 6e 20 74 68 65 20 | 68 65 61 70 2e 20 20 54 | in the |heap. T|
|000027f0| 68 69 73 20 62 69 74 20 | 73 68 6f 75 6c 64 20 62 |his bit |should b|
|00002800| 65 20 73 65 74 20 6f 6e | 6c 79 20 69 66 20 74 68 |e set on|ly if th|
|00002810| 65 20 6d 6f 64 75 6c 65 | 20 69 73 20 70 61 73 73 |e module| is pass|
|00002820| 69 6e 67 20 74 68 65 20 | 61 64 64 72 65 73 73 20 |ing the |address |
|00002830| 6f 66 20 6f 6e 65 20 6f | 66 20 69 74 73 20 72 6f |of one o|f its ro|
|00002840| 75 74 69 6e 65 73 20 74 | 6f 20 74 68 65 20 6f 75 |utines t|o the ou|
|00002850| 74 73 69 64 65 20 77 6f | 72 6c 64 20 28 66 6f 72 |tside wo|rld (for|
|00002860| 20 65 78 61 6d 70 6c 65 | 2c 20 69 6e 73 74 61 6c | example|, instal|
|00002870| 6c 69 6e 67 20 69 74 73 | 65 6c 66 20 69 6e 20 61 |ling its|elf in a|
|00002880| 20 71 75 65 75 65 29 2e | 0d 73 64 65 76 47 65 74 | queue).|.sdevGet|
|00002890| 44 69 73 70 6c 61 79 57 | 69 64 74 68 20 0d 54 68 |DisplayW|idth .Th|
|000028a0| 65 20 73 64 65 76 47 65 | 74 44 69 73 70 6c 61 79 |e sdevGe|tDisplay|
|000028b0| 57 69 64 74 68 20 6d 65 | 73 73 61 67 65 20 69 73 |Width me|ssage is|
|000028c0| 20 73 65 6e 74 20 74 6f | 20 61 20 6d 6f 64 75 6c | sent to| a modul|
|000028d0| 65 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 68 |e to det|ermine h|
|000028e0| 6f 77 20 6d 75 63 68 20 | 68 6f 72 69 7a 6f 6e 74 |ow much |horizont|
|000028f0| 61 6c 20 73 70 61 63 65 | 20 28 69 6e 20 70 69 78 |al space| (in pix|
|00002900| 65 6c 73 29 20 69 74 73 | 20 64 69 73 70 6c 61 79 |els) its| display|
|00002910| 20 63 75 72 72 65 6e 74 | 6c 79 20 72 65 71 75 69 | current|ly requi|
|00002920| 72 65 73 20 6f 6e 20 74 | 68 65 20 43 6f 6e 74 72 |res on t|he Contr|
|00002930| 6f 6c 20 53 74 72 69 70 | 2e 20 20 54 68 65 20 6d |ol Strip|. The m|
|00002940| 6f 64 75 6c 65 20 73 68 | 6f 75 6c 64 20 72 65 74 |odule sh|ould ret|
|00002950| 75 72 6e 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |urn the |number o|
|00002960| 66 20 70 69 78 65 6c 73 | 20 61 73 20 69 74 73 20 |f pixels| as its |
|00002970| 72 65 73 75 6c 74 2e 20 | 20 54 68 65 20 72 65 74 |result. | The ret|
|00002980| 75 72 6e 65 64 20 77 69 | 64 74 68 20 73 68 6f 75 |urned wi|dth shou|
|00002990| 6c 64 20 6e 6f 74 20 62 | 65 20 74 68 65 20 6d 61 |ld not b|e the ma|
|000029a0| 78 69 6d 75 6d 20 77 69 | 64 74 68 20 69 74 20 72 |ximum wi|dth it r|
|000029b0| 65 71 75 69 72 65 73 20 | 66 6f 72 20 61 6e 79 20 |equires |for any |
|000029c0| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 2c 20 62 |configur|ation, b|
|000029d0| 75 74 20 73 68 6f 75 6c | 64 20 72 65 66 6c 65 63 |ut shoul|d reflec|
|000029e0| 74 20 68 6f 77 20 6d 75 | 63 68 20 73 70 61 63 65 |t how mu|ch space|
|000029f0| 20 69 74 20 63 75 72 72 | 65 6e 74 6c 79 20 72 65 | it curr|ently re|
|00002a00| 71 75 69 72 65 73 2c 20 | 62 65 63 61 75 73 65 20 |quires, |because |
|00002a10| 69 74 d5 73 20 70 6f 73 | 73 69 62 6c 65 20 66 6f |it.s pos|sible fo|
|00002a20| 72 20 61 20 6d 6f 64 75 | 6c 65 20 74 6f 20 72 65 |r a modu|le to re|
|00002a30| 71 75 65 73 74 20 74 68 | 61 74 20 69 74 73 20 64 |quest th|at its d|
|00002a40| 69 73 70 6c 61 79 20 62 | 65 20 72 65 73 69 7a 65 |isplay b|e resize|
|00002a50| 64 2e 0d 57 61 72 6e 69 | 6e 67 09 59 6f 75 20 73 |d..Warni|ng.You s|
|00002a60| 68 6f 75 6c 64 20 62 65 | 20 63 6f 6e 73 65 72 76 |hould be| conserv|
|00002a70| 61 74 69 76 65 20 69 6e | 20 79 6f 75 72 20 75 73 |ative in| your us|
|00002a80| 65 20 6f 66 20 43 6f 6e | 74 72 6f 6c 20 53 74 72 |e of Con|trol Str|
|00002a90| 69 70 20 64 69 73 70 6c | 61 79 20 73 70 61 63 65 |ip displ|ay space|
|00002aa0| 2c 20 77 68 69 63 68 20 | 69 73 20 6c 69 6d 69 74 |, which |is limit|
|00002ab0| 65 64 2e 20 20 42 65 63 | 61 75 73 65 20 73 65 76 |ed. Bec|ause sev|
|00002ac0| 65 72 61 6c 20 6d 6f 64 | 75 6c 65 73 20 63 6f 75 |eral mod|ules cou|
|00002ad0| 6c 64 20 62 65 20 72 65 | 71 75 65 73 74 69 6e 67 |ld be re|questing|
|00002ae0| 20 73 70 61 63 65 2c 20 | 69 74 d5 73 20 70 6f 73 | space, |it.s pos|
|00002af0| 73 69 62 6c 65 20 74 68 | 61 74 20 79 6f 75 72 20 |sible th|at your |
|00002b00| 6d 6f 64 75 6c 65 20 63 | 6f 75 6c 64 20 62 65 20 |module c|ould be |
|00002b10| 73 68 6f 76 65 64 20 6f | 66 66 20 74 68 65 20 65 |shoved o|ff the e|
|00002b20| 6e 64 2e 0d 73 64 65 76 | 50 65 72 69 6f 64 69 63 |nd..sdev|Periodic|
|00002b30| 54 69 63 6b 6c 65 20 0d | 54 68 65 20 73 64 65 76 |Tickle .|The sdev|
|00002b40| 50 65 72 69 6f 64 69 63 | 54 69 63 6b 6c 65 20 6d |Periodic|Tickle m|
|00002b50| 65 73 73 61 67 65 20 69 | 73 20 70 61 73 73 65 64 |essage i|s passed|
|00002b60| 20 74 6f 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 70 | to the |module p|
|00002b70| 65 72 69 6f 64 69 63 61 | 6c 6c 79 20 74 6f 20 61 |eriodica|lly to a|
|00002b80| 6c 6c 6f 77 20 74 68 65 | 20 6d 6f 64 75 6c 65 20 |llow the| module |
|00002b90| 74 6f 20 75 70 64 61 74 | 65 20 69 74 73 20 64 69 |to updat|e its di|
|00002ba0| 73 70 6c 61 79 20 64 75 | 65 20 74 6f 20 63 68 61 |splay du|e to cha|
|00002bb0| 6e 67 65 73 20 69 6e 20 | 69 74 73 20 73 74 61 74 |nges in |its stat|
|00002bc0| 65 2e 20 20 59 6f 75 20 | 73 68 6f 75 6c 64 20 6e |e. You |should n|
|00002bd0| 6f 74 20 61 73 73 75 6d | 65 20 61 6e 79 20 6d 69 |ot assum|e any mi|
|00002be0| 6e 69 6d 75 6d 20 6f 72 | 20 6d 61 78 69 6d 75 6d |nimum or| maximum|
|00002bf0| 20 69 6e 74 65 72 76 61 | 6c 20 62 65 74 77 65 65 | interva|l betwee|
|00002c00| 6e 20 74 69 63 6b 6c 65 | 73 2e 20 20 54 68 65 20 |n tickle|s. The |
|00002c10| 6d 6f 64 75 6c 65 20 73 | 68 6f 75 6c 64 20 72 65 |module s|hould re|
|00002c20| 74 75 72 6e 2c 20 61 73 | 20 69 74 73 20 72 65 73 |turn, as| its res|
|00002c30| 75 6c 74 2c 20 61 20 6c | 6f 6e 67 20 74 68 61 74 |ult, a l|ong that|
|00002c40| 20 73 69 67 6e 61 6c 73 | 20 72 65 71 75 65 73 74 | signals| request|
|00002c50| 73 20 66 6f 72 20 61 63 | 74 69 6f 6e 73 20 66 72 |s for ac|tions fr|
|00002c60| 6f 6d 20 74 68 65 20 43 | 6f 6e 74 72 6f 6c 20 53 |om the C|ontrol S|
|00002c70| 74 72 69 70 20 73 6f 66 | 74 77 61 72 65 2e 20 20 |trip sof|tware. |
|00002c80| 41 6c 6c 20 75 6e 64 65 | 66 69 6e 65 64 20 62 69 |All unde|fined bi|
|00002c90| 74 73 20 69 6e 20 74 68 | 65 20 72 65 73 75 6c 74 |ts in th|e result|
|00002ca0| 20 61 72 65 20 72 65 73 | 65 72 76 65 64 20 66 6f | are res|erved fo|
|00002cb0| 72 20 66 75 74 75 72 65 | 20 75 73 65 20 62 79 20 |r future| use by |
|00002cc0| 41 70 70 6c 65 20 61 6e | 64 20 6d 75 73 74 20 62 |Apple an|d must b|
|00002cd0| 65 20 73 65 74 20 74 6f | 20 30 2e 20 20 54 68 65 |e set to| 0. The|
|00002ce0| 20 62 69 74 73 20 61 72 | 65 20 64 65 66 69 6e 65 | bits ar|e define|
|00002cf0| 64 20 61 73 20 0d 73 64 | 65 76 52 65 73 69 7a 65 |d as .sd|evResize|
|00002d00| 44 69 73 70 6c 61 79 09 | 30 09 49 66 20 74 68 69 |Display.|0.If thi|
|00002d10| 73 20 62 69 74 20 69 73 | 20 73 65 74 2c 20 74 68 |s bit is| set, th|
|00002d20| 65 20 6d 6f 64 75 6c 65 | 20 6e 65 65 64 73 20 74 |e module| needs t|
|00002d30| 6f 20 72 65 73 69 7a 65 | 20 69 74 73 20 64 69 73 |o resize| its dis|
|00002d40| 70 6c 61 79 2e 20 20 54 | 68 65 20 43 6f 6e 74 72 |play. T|he Contr|
|00002d50| 6f 6c 20 53 74 72 69 70 | 20 77 69 6c 6c 20 73 65 |ol Strip| will se|
|00002d60| 6e 64 20 61 20 73 64 65 | 76 47 65 74 44 69 73 70 |nd a sde|vGetDisp|
|00002d70| 6c 61 79 57 69 64 74 68 | 20 6d 65 73 73 61 67 65 |layWidth| message|
|00002d80| 20 74 6f 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 61 | to the |module a|
|00002d90| 6e 64 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 61 |nd follo|wed by a|
|00002da0| 20 73 64 65 76 44 72 61 | 77 53 74 61 74 75 73 20 | sdevDra|wStatus |
|00002db0| 6d 65 73 73 61 67 65 20 | 73 6f 20 74 68 61 74 20 |message |so that |
|00002dc0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 63 61 6e 20 75 |the modu|le can u|
|00002dd0| 70 64 61 74 65 20 69 74 | 73 20 64 69 73 70 6c 61 |pdate it|s displa|
|00002de0| 79 2e 0d 73 64 65 76 4e | 65 65 64 54 6f 53 61 76 |y..sdevN|eedToSav|
|00002df0| 65 09 31 09 49 66 20 74 | 68 69 73 20 62 69 74 20 |e.1.If t|his bit |
|00002e00| 69 73 20 73 65 74 2c 20 | 74 68 65 20 6d 6f 64 75 |is set, |the modu|
|00002e10| 6c 65 20 6e 65 65 64 73 | 20 74 6f 20 73 61 76 65 |le needs| to save|
|00002e20| 20 63 68 61 6e 67 65 64 | 20 73 65 74 74 69 6e 67 | changed| setting|
|00002e30| 73 20 74 6f 20 64 69 73 | 6b 2e 20 20 54 68 65 20 |s to dis|k. The |
|00002e40| 43 6f 6e 74 72 6f 6c 20 | 53 74 72 69 70 20 73 6f |Control |Strip so|
|00002e50| 66 74 77 61 72 65 20 77 | 69 6c 6c 20 6d 61 72 6b |ftware w|ill mark|
|00002e60| 20 74 68 65 20 72 65 71 | 75 65 73 74 20 62 75 74 | the req|uest but|
|00002e70| 20 6d 61 79 20 64 65 66 | 65 72 20 74 68 65 20 61 | may def|er the a|
|00002e80| 63 74 75 61 6c 20 73 61 | 76 65 20 6f 70 65 72 61 |ctual sa|ve opera|
|00002e90| 74 69 6f 6e 20 74 6f 20 | 61 20 62 65 74 74 65 72 |tion to |a better|
|00002ea0| 20 74 69 6d 65 20 28 66 | 6f 72 20 65 78 61 6d 70 | time (f|or examp|
|00002eb0| 6c 65 2c 20 77 68 65 6e | 20 74 68 65 20 68 61 72 |le, when| the har|
|00002ec0| 64 20 64 69 73 6b 20 69 | 73 20 73 70 69 6e 6e 69 |d disk i|s spinni|
|00002ed0| 6e 67 29 2e 0d 73 64 65 | 76 48 65 6c 70 53 74 61 |ng)..sde|vHelpSta|
|00002ee0| 74 65 43 68 61 6e 67 65 | 09 32 09 49 66 20 74 68 |teChange|.2.If th|
|00002ef0| 69 73 20 62 69 74 20 69 | 73 20 73 65 74 2c 20 74 |is bit i|s set, t|
|00002f00| 68 65 20 6d 6f 64 75 6c | 65 d5 73 20 73 74 61 74 |he modul|e.s stat|
|00002f10| 65 20 68 61 73 20 63 68 | 61 6e 67 65 64 20 73 6f |e has ch|anged so|
|00002f20| 20 69 74 20 6e 65 65 64 | 73 20 74 6f 20 75 70 64 | it need|s to upd|
|00002f30| 61 74 65 20 69 74 73 20 | 68 65 6c 70 20 6d 65 73 |ate its |help mes|
|00002f40| 73 61 67 65 2e 20 20 49 | 66 20 61 20 68 65 6c 70 |sage. I|f a help|
|00002f50| 20 62 61 6c 6c 6f 6f 6e | 20 69 73 20 62 65 69 6e | balloon| is bein|
|00002f60| 67 20 64 69 73 70 6c 61 | 79 65 64 20 66 6f 72 20 |g displa|yed for |
|00002f70| 74 68 69 73 20 6d 6f 64 | 75 6c 65 2c 20 74 68 65 |this mod|ule, the|
|00002f80| 20 43 6f 6e 74 72 6f 6c | 20 53 74 72 69 70 20 73 | Control| Strip s|
|00002f90| 6f 66 74 77 61 72 65 20 | 77 69 6c 6c 20 72 65 6d |oftware |will rem|
|00002fa0| 6f 76 65 20 69 74 20 61 | 6e 64 20 70 75 74 20 75 |ove it a|nd put u|
|00002fb0| 70 20 61 20 6e 65 77 20 | 68 65 6c 70 20 62 61 6c |p a new |help bal|
|00002fc0| 6c 6f 6f 6e 20 66 6f 72 | 20 74 68 65 20 63 75 72 |loon for| the cur|
|00002fd0| 72 65 6e 74 20 73 74 61 | 74 65 2e 0d 73 64 65 76 |rent sta|te..sdev|
|00002fe0| 43 6c 6f 73 65 4e 6f 77 | 09 33 09 49 66 20 74 68 |CloseNow|.3.If th|
|00002ff0| 69 73 20 62 69 74 20 69 | 73 20 73 65 74 2c 20 74 |is bit i|s set, t|
|00003000| 68 65 20 6d 6f 64 75 6c | 65 20 69 73 20 72 65 71 |he modul|e is req|
|00003010| 75 65 73 74 69 6e 67 20 | 74 6f 20 62 65 20 63 6c |uesting |to be cl|
|00003020| 6f 73 65 64 2e 20 20 54 | 68 65 20 43 6f 6e 74 72 |osed. T|he Contr|
|00003030| 6f 6c 20 53 74 72 69 70 | 20 73 6f 66 74 77 61 72 |ol Strip| softwar|
|00003040| 65 20 77 69 6c 6c 20 63 | 61 6c 6c 20 74 68 65 20 |e will c|all the |
|00003050| 6d 6f 64 75 6c 65 20 74 | 6f 20 73 61 76 65 20 69 |module t|o save i|
|00003060| 74 73 20 73 65 74 74 69 | 6e 67 73 2c 20 74 68 65 |ts setti|ngs, the|
|00003070| 6e 20 63 61 6c 6c 20 69 | 74 20 61 67 61 69 6e 20 |n call i|t again |
|00003080| 74 6f 20 63 6c 6f 73 65 | 20 69 74 73 65 6c 66 2e |to close| itself.|
|00003090| 20 0d 73 64 65 76 44 72 | 61 77 53 74 61 74 75 73 | .sdevDr|awStatus|
|000030a0| 20 0d 54 68 65 20 73 64 | 65 76 44 72 61 77 53 74 | .The sd|evDrawSt|
|000030b0| 61 74 75 73 20 6d 65 73 | 73 61 67 65 20 69 6e 64 |atus mes|sage ind|
|000030c0| 69 63 61 74 65 73 20 74 | 68 61 74 20 74 68 65 20 |icates t|hat the |
|000030d0| 6d 6f 64 75 6c 65 20 68 | 61 73 20 74 6f 20 72 65 |module h|as to re|
|000030e0| 64 72 61 77 20 69 74 73 | 20 64 69 73 70 6c 61 79 |draw its| display|
|000030f0| 20 74 6f 20 72 65 66 6c | 65 63 74 20 74 68 65 20 | to refl|ect the |
|00003100| 6d 6f 73 74 20 72 65 63 | 65 6e 74 20 73 74 61 74 |most rec|ent stat|
|00003110| 65 2e 20 54 68 69 73 20 | 6d 65 73 73 61 67 65 20 |e. This |message |
|00003120| 69 73 20 74 79 70 69 63 | 61 6c 6c 79 20 20 73 65 |is typic|ally se|
|00003130| 6e 74 20 77 68 65 6e 20 | 74 68 65 20 75 73 65 72 |nt when |the user|
|00003140| 20 63 6c 69 63 6b 73 20 | 6f 6e 20 74 68 65 20 6d | clicks |on the m|
|00003150| 6f 64 75 6c 65 27 73 20 | 64 69 73 70 6c 61 79 20 |odule's |display |
|00003160| 61 72 65 61 2c 20 77 68 | 65 6e 20 61 6e 79 20 6f |area, wh|en any o|
|00003170| 66 20 20 74 68 65 20 6d | 6f 64 75 6c 65 d5 73 20 |f the m|odule.s |
|00003180| 64 69 73 70 6c 61 79 73 | 20 69 73 20 72 65 73 69 |displays| is resi|
|00003190| 7a 65 64 2c 20 6f 72 20 | 77 68 65 6e 20 74 68 65 |zed, or |when the|
|000031a0| 20 43 6f 6e 74 72 6f 6c | 20 53 74 72 69 70 20 69 | Control| Strip i|
|000031b0| 74 73 65 6c 66 20 20 6e | 65 65 64 73 20 74 6f 20 |tself n|eeds to |
|000031c0| 62 65 20 75 70 64 61 74 | 65 64 2c 20 70 65 72 68 |be updat|ed, perh|
|000031d0| 61 70 73 20 69 6e 20 72 | 65 73 70 6f 6e 73 65 20 |aps in r|esponse |
|000031e0| 74 6f 20 61 20 73 63 72 | 65 65 6e 20 73 61 76 65 |to a scr|een save|
|000031f0| 72 20 20 64 65 61 63 74 | 69 76 61 74 69 6f 6e 2e |r deact|ivation.|
|00003200| 0d 54 68 65 20 73 74 61 | 74 75 73 52 65 63 74 20 |.The sta|tusRect |
|00003210| 70 61 72 61 6d 65 74 65 | 72 20 70 6f 69 6e 74 73 |paramete|r points|
|00003220| 20 74 6f 20 61 20 72 65 | 63 74 61 6e 67 6c 65 20 | to a re|ctangle |
|00003230| 62 6f 75 6e 64 69 6e 67 | 20 74 68 65 20 6d 6f 64 |bounding| the mod|
|00003240| 75 6c 65 27 73 20 64 69 | 73 70 6c 61 79 20 20 61 |ule's di|splay a|
|00003250| 72 65 61 2c 20 69 6e 20 | 6c 6f 63 61 6c 20 63 6f |rea, in |local co|
|00003260| 6f 72 64 69 6e 61 74 65 | 73 2e 20 41 6c 6c 20 64 |ordinate|s. All d|
|00003270| 72 61 77 69 6e 67 20 64 | 6f 6e 65 20 62 79 20 61 |rawing d|one by a|
|00003280| 20 6d 6f 64 75 6c 65 20 | 77 69 74 68 69 6e 20 20 | module |within |
|00003290| 74 68 65 20 62 6f 75 6e | 64 73 20 6f 66 20 74 68 |the boun|ds of th|
|000032a0| 65 20 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 20 |e Contro|l Strip |
|000032b0| 6d 75 73 74 20 62 65 20 | 6c 69 6d 69 74 65 64 20 |must be |limited |
|000032c0| 74 6f 20 74 68 65 20 6d | 6f 64 75 6c 65 27 73 20 |to the m|odule's |
|000032d0| 20 64 69 73 70 6c 61 79 | 20 72 65 63 74 61 6e 67 | display| rectang|
|000032e0| 6c 65 2e 20 54 68 65 20 | 67 72 61 70 68 69 63 73 |le. The |graphics|
|000032f0| 20 70 6f 72 74 27 73 20 | 63 6c 69 70 52 67 6e 20 | port's |clipRgn |
|00003300| 77 69 6c 6c 20 62 65 20 | 73 65 74 20 74 6f 20 20 |will be |set to |
|00003310| 74 68 65 20 76 69 73 69 | 62 6c 65 20 70 6f 72 74 |the visi|ble port|
|00003320| 69 6f 6e 20 6f 66 20 74 | 68 69 73 20 72 65 63 74 |ion of t|his rect|
|00003330| 61 6e 67 6c 65 20 73 6f | 20 79 6f 75 20 63 61 6e |angle so| you can|
|00003340| 20 64 72 61 77 20 61 6c | 6c 20 74 68 65 20 65 6c | draw al|l the el|
|00003350| 65 6d 65 6e 74 73 20 69 | 6e 20 74 68 65 20 64 69 |ements i|n the di|
|00003360| 73 70 6c 61 79 2e 20 49 | 66 20 79 6f 75 20 6e 65 |splay. I|f you ne|
|00003370| 65 64 20 74 6f 20 63 68 | 61 6e 67 65 20 74 68 65 |ed to ch|ange the|
|00003380| 20 63 6c 69 70 52 67 6e | 2c 20 79 6f 75 20 73 68 | clipRgn|, you sh|
|00003390| 6f 75 6c 64 20 6f 62 73 | 65 72 76 65 20 74 68 65 |ould obs|erve the|
|000033a0| 20 69 6e 69 74 69 61 6c | 20 63 6c 69 70 52 67 6e | initial| clipRgn|
|000033b0| 20 74 6f 20 61 76 6f 69 | 64 20 20 64 72 61 77 69 | to avoi|d drawi|
|000033c0| 6e 67 20 6f 76 65 72 20 | 6f 74 68 65 72 20 69 74 |ng over |other it|
|000033d0| 65 6d 73 20 69 6e 20 74 | 68 65 20 43 6f 6e 74 72 |ems in t|he Contr|
|000033e0| 6f 6c 20 53 74 72 69 70 | 2e 0d 73 64 65 76 4d 6f |ol Strip|..sdevMo|
|000033f0| 75 73 65 43 6c 69 63 6b | 20 0d 57 68 65 6e 20 74 |useClick| .When t|
|00003400| 68 65 20 75 73 65 72 20 | 63 6c 69 63 6b 73 20 69 |he user |clicks i|
|00003410| 6e 20 61 20 6d 6f 64 75 | 6c 65 d5 73 20 64 69 73 |n a modu|le.s dis|
|00003420| 70 6c 61 79 20 61 72 65 | 61 2c 20 74 68 65 20 43 |play are|a, the C|
|00003430| 6f 6e 74 72 6f 6c 20 53 | 74 72 69 70 20 73 6f 66 |ontrol S|trip sof|
|00003440| 74 77 61 72 65 20 63 61 | 6c 6c 73 20 74 68 65 20 |tware ca|lls the |
|00003450| 6d 6f 64 75 6c 65 20 77 | 69 74 68 20 74 68 65 20 |module w|ith the |
|00003460| 73 64 65 76 4d 6f 75 73 | 65 43 6c 69 63 6b 20 6d |sdevMous|eClick m|
|00003470| 65 73 73 61 67 65 20 69 | 66 20 74 68 65 20 73 64 |essage i|f the sd|
|00003480| 65 76 57 61 6e 74 4d 6f | 75 73 65 43 6c 69 63 6b |evWantMo|useClick|
|00003490| 73 20 62 69 74 20 69 73 | 20 73 65 74 20 69 6e 20 |s bit is| set in |
|000034a0| 74 68 65 20 6d 6f 64 75 | 6c 65 d5 73 20 66 65 61 |the modu|le.s fea|
|000034b0| 74 75 72 65 73 2e 20 0d | 49 66 20 74 68 65 20 73 |tures. .|If the s|
|000034c0| 64 65 76 44 6f 6e 74 41 | 75 74 6f 54 72 61 63 6b |devDontA|utoTrack|
|000034d0| 20 62 69 74 20 69 73 20 | 61 6c 73 6f 20 73 65 74 | bit is |also set|
|000034e0| 2c 20 74 68 65 20 43 6f | 6e 74 72 6f 6c 20 53 74 |, the Co|ntrol St|
|000034f0| 72 69 70 20 64 72 61 77 | 73 20 74 68 65 20 6d 6f |rip draw|s the mo|
|00003500| 64 75 6c 65 d5 73 20 64 | 69 73 70 6c 61 79 20 69 |dule.s d|isplay i|
|00003510| 6e 20 69 74 73 20 68 69 | 67 68 6c 69 67 68 74 65 |n its hi|ghlighte|
|00003520| 64 20 73 74 61 74 65 20 | 61 6e 64 20 74 68 65 6e |d state |and then|
|00003530| 20 73 65 6e 64 73 20 74 | 68 65 20 73 64 65 76 4d | sends t|he sdevM|
|00003540| 6f 75 73 65 43 6c 69 63 | 6b 20 6d 65 73 73 61 67 |ouseClic|k messag|
|00003550| 65 20 74 6f 20 74 68 65 | 20 6d 6f 64 75 6c 65 2e |e to the| module.|
|00003560| 20 20 49 66 20 74 68 65 | 20 73 64 65 76 44 6f 6e | If the| sdevDon|
|00003570| 74 41 75 74 6f 54 72 61 | 63 6b 20 62 69 74 20 69 |tAutoTra|ck bit i|
|00003580| 73 20 6e 6f 74 20 73 65 | 74 2c 20 74 68 65 20 43 |s not se|t, the C|
|00003590| 6f 6e 74 72 6f 6c 20 53 | 74 72 69 70 20 73 6f 66 |ontrol S|trip sof|
|000035a0| 74 77 61 72 65 20 74 72 | 61 63 6b 73 20 74 68 65 |tware tr|acks the|
|000035b0| 20 63 75 72 73 6f 72 20 | 75 6e 74 69 6c 20 74 68 | cursor |until th|
|000035c0| 65 20 6d 6f 75 73 65 20 | 62 75 74 74 6f 6e 20 69 |e mouse |button i|
|000035d0| 73 20 72 65 6c 65 61 73 | 65 64 2e 20 20 49 66 20 |s releas|ed. If |
|000035e0| 74 68 65 20 63 75 72 73 | 6f 72 20 69 73 20 73 74 |the curs|or is st|
|000035f0| 69 6c 6c 20 77 69 74 68 | 69 6e 20 74 68 65 20 6d |ill with|in the m|
|00003600| 6f 64 75 6c 65 d5 73 20 | 64 69 73 70 6c 61 79 20 |odule.s |display |
|00003610| 61 72 65 61 2c 20 74 68 | 65 20 43 6f 6e 74 72 6f |area, th|e Contro|
|00003620| 6c 20 53 74 72 69 70 20 | 73 6f 66 74 77 61 72 65 |l Strip |software|
|00003630| 20 73 65 6e 64 73 20 74 | 68 65 20 73 64 65 76 4d | sends t|he sdevM|
|00003640| 6f 75 73 65 43 6c 69 63 | 6b 20 6d 65 73 73 61 67 |ouseClic|k messag|
|00003650| 65 20 74 6f 20 6e 6f 74 | 69 66 79 20 74 68 65 20 |e to not|ify the |
|00003660| 6d 6f 64 75 6c 65 20 74 | 68 61 74 20 61 20 63 6c |module t|hat a cl|
|00003670| 69 63 6b 20 6f 63 63 75 | 72 72 65 64 2e 20 20 49 |ick occu|rred. I|
|00003680| 6e 20 65 69 74 68 65 72 | 20 63 61 73 65 2c 20 74 |n either| case, t|
|00003690| 68 65 20 6d 6f 64 75 6c | 65 20 63 61 6e 20 74 68 |he modul|e can th|
|000036a0| 65 6e 20 70 65 72 66 6f | 72 6d 20 74 68 65 20 61 |en perfo|rm the a|
|000036b0| 70 70 72 6f 70 72 69 61 | 74 65 20 66 75 6e 63 74 |ppropria|te funct|
|000036c0| 69 6f 6e 20 69 6e 20 72 | 65 73 70 6f 6e 73 65 20 |ion in r|esponse |
|000036d0| 74 6f 20 61 20 6d 6f 75 | 73 65 2d 64 6f 77 6e 20 |to a mou|se-down |
|000036e0| 65 76 65 6e 74 2e 0d 54 | 68 69 73 20 6d 65 73 73 |event..T|his mess|
|000036f0| 61 67 65 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |age retu|rns the |
|00003700| 73 61 6d 65 20 72 65 73 | 75 6c 74 20 61 73 20 74 |same res|ult as t|
|00003710| 68 65 20 73 64 65 76 50 | 65 72 69 6f 64 69 63 54 |he sdevP|eriodicT|
|00003720| 69 63 6b 6c 65 20 6d 65 | 73 73 61 67 65 2e 0d 73 |ickle me|ssage..s|
|00003730| 64 65 76 53 61 76 65 53 | 65 74 74 69 6e 67 73 20 |devSaveS|ettings |
|00003740| 0d 54 68 65 20 73 64 65 | 76 53 61 76 65 53 65 74 |.The sde|vSaveSet|
|00003750| 74 69 6e 67 73 20 6d 65 | 73 73 61 67 65 20 69 73 |tings me|ssage is|
|00003760| 20 70 61 73 73 65 64 20 | 74 6f 20 74 68 65 20 6d | passed |to the m|
|00003770| 6f 64 75 6c 65 20 77 68 | 65 6e 20 74 68 65 20 43 |odule wh|en the C|
|00003780| 6f 6e 74 72 6f 6c 20 53 | 74 72 69 70 20 73 6f 66 |ontrol S|trip sof|
|00003790| 74 77 61 72 65 20 68 61 | 73 20 64 65 74 65 72 6d |tware ha|s determ|
|000037a0| 69 6e 65 64 20 74 68 61 | 74 20 69 74 d5 73 20 61 |ined tha|t it.s a|
|000037b0| 20 67 6f 6f 64 20 74 69 | 6d 65 20 74 6f 20 73 61 | good ti|me to sa|
|000037c0| 76 65 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |ve confi|guration|
|000037d0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 74 6f 20 | informa|tion to |
|000037e0| 74 68 65 20 64 69 73 6b | 2e 20 20 54 68 69 73 20 |the disk|. This |
|000037f0| 6d 65 73 73 61 67 65 20 | 77 69 6c 6c 20 62 65 20 |message |will be |
|00003800| 73 65 6e 74 20 6f 6e 6c | 79 20 69 66 20 74 68 65 |sent onl|y if the|
|00003810| 20 6d 6f 64 75 6c 65 20 | 68 61 64 20 70 72 65 76 | module |had prev|
|00003820| 69 6f 75 73 6c 79 20 73 | 65 74 20 74 68 65 20 73 |iously s|et the s|
|00003830| 64 65 76 4e 65 65 64 54 | 6f 53 61 76 65 20 62 69 |devNeedT|oSave bi|
|00003840| 74 20 69 6e 20 74 68 65 | 20 72 65 73 75 6c 74 20 |t in the| result |
|00003850| 6f 66 20 61 20 73 64 65 | 76 50 65 72 69 6f 64 69 |of a sde|vPeriodi|
|00003860| 63 54 69 63 6b 6c 65 20 | 6f 72 20 73 64 65 76 4d |cTickle |or sdevM|
|00003870| 6f 75 73 65 43 6c 69 63 | 6b 20 6d 65 73 73 61 67 |ouseClic|k messag|
|00003880| 65 2e 20 20 54 68 65 20 | 6d 6f 64 75 6c 65 20 73 |e. The |module s|
|00003890| 68 6f 75 6c 64 20 72 65 | 74 75 72 6e 20 61 6e 20 |hould re|turn an |
|000038a0| 65 72 72 6f 72 20 63 6f | 64 65 20 28 46 69 6c 65 |error co|de (File|
|000038b0| 20 4d 61 6e 61 67 65 72 | 2c 20 52 65 73 6f 75 72 | Manager|, Resour|
|000038c0| 63 65 20 4d 61 6e 61 67 | 65 72 2c 20 6f 72 20 74 |ce Manag|er, or t|
|000038d0| 68 65 20 6c 69 6b 65 29 | 20 69 6e 64 69 63 61 74 |he like)| indicat|
|000038e0| 69 6e 67 20 74 68 65 20 | 73 75 63 63 65 73 73 20 |ing the |success |
|000038f0| 6f 66 20 74 68 65 20 73 | 61 76 65 20 6f 70 65 72 |of the s|ave oper|
|00003900| 61 74 69 6f 6e 2e 20 20 | 54 68 65 20 43 6f 6e 74 |ation. |The Cont|
|00003910| 72 6f 6c 20 53 74 72 69 | 70 20 73 6f 66 74 77 61 |rol Stri|p softwa|
|00003920| 72 65 20 77 69 6c 6c 20 | 63 6f 6e 74 69 6e 75 65 |re will |continue|
|00003930| 20 74 6f 20 73 65 6e 64 | 20 74 68 69 73 20 6d 65 | to send| this me|
|00003940| 73 73 61 67 65 20 74 6f | 20 74 68 65 20 6d 6f 64 |ssage to| the mod|
|00003950| 75 6c 65 20 75 6e 74 69 | 6c 20 74 68 65 20 6d 6f |ule unti|l the mo|
|00003960| 64 75 6c 65 20 72 65 74 | 75 72 6e 73 20 61 20 72 |dule ret|urns a r|
|00003970| 65 73 75 6c 74 20 6f 66 | 20 30 2c 20 69 6e 64 69 |esult of| 0, indi|
|00003980| 63 61 74 69 6e 67 20 61 | 20 73 75 63 63 65 73 73 |cating a| success|
|00003990| 66 75 6c 20 73 61 76 65 | 2e 0d 73 64 65 76 53 68 |ful save|..sdevSh|
|000039a0| 6f 77 42 61 6c 6c 6f 6f | 6e 48 65 6c 70 20 0d 54 |owBalloo|nHelp .T|
|000039b0| 68 65 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |he Contr|ol Strip|
|000039c0| 20 73 6f 66 74 77 61 72 | 65 20 63 61 6c 6c 73 20 | softwar|e calls |
|000039d0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 77 69 74 68 20 |the modu|le with |
|000039e0| 74 68 65 20 73 64 65 76 | 53 68 6f 77 42 61 6c 6c |the sdev|ShowBall|
|000039f0| 6f 6f 6e 48 65 6c 70 20 | 6d 65 73 73 61 67 65 20 |oonHelp |message |
|00003a00| 69 66 20 42 61 6c 6c 6f | 6f 6e 20 48 65 6c 70 20 |if Ballo|on Help |
|00003a10| 69 73 20 74 75 72 6e 65 | 64 20 6f 6e 2c 20 74 68 |is turne|d on, th|
|00003a20| 65 20 6d 6f 64 75 6c 65 | 20 68 61 73 20 70 72 65 |e module| has pre|
|00003a30| 76 69 6f 75 73 6c 79 20 | 73 65 74 20 74 68 65 20 |viously |set the |
|00003a40| 73 64 65 76 48 61 73 43 | 75 73 74 6f 6d 48 65 6c |sdevHasC|ustomHel|
|00003a50| 70 20 62 69 74 20 69 6e | 20 69 74 73 20 66 65 61 |p bit in| its fea|
|00003a60| 74 75 72 65 73 2c 20 61 | 6e 64 20 74 68 65 20 63 |tures, a|nd the c|
|00003a70| 75 72 73 6f 72 20 69 73 | 20 6f 76 65 72 20 74 68 |ursor is| over th|
|00003a80| 65 20 6d 6f 64 75 6c 65 | d5 73 20 64 69 73 70 6c |e module|.s displ|
|00003a90| 61 79 20 61 72 65 61 2e | 20 54 68 65 20 6d 6f 64 |ay area.| The mod|
|00003aa0| 75 6c 65 20 73 68 6f 75 | 6c 64 20 74 68 65 6e 20 |ule shou|ld then |
|00003ab0| 63 61 6c 6c 20 74 68 65 | 20 48 65 6c 70 20 4d 61 |call the| Help Ma|
|00003ac0| 6e 61 67 65 72 20 74 6f | 20 64 69 73 70 6c 61 79 |nager to| display|
|00003ad0| 20 61 20 68 65 6c 70 20 | 62 61 6c 6c 6f 6f 6e 20 | a help |balloon |
|00003ae0| 64 65 73 63 72 69 62 69 | 6e 67 20 74 68 65 20 63 |describi|ng the c|
|00003af0| 75 72 72 65 6e 74 20 73 | 74 61 74 65 20 6f 66 20 |urrent s|tate of |
|00003b00| 74 68 65 20 6d 6f 64 75 | 6c 65 2e 20 20 54 68 65 |the modu|le. The|
|00003b10| 20 6d 6f 64 75 6c 65 20 | 73 68 6f 75 6c 64 20 72 | module |should r|
|00003b20| 65 74 75 72 6e 20 61 20 | 76 61 6c 75 65 20 6f 66 |eturn a |value of|
|00003b30| 20 30 20 69 66 20 69 74 | d5 73 20 73 75 63 63 65 | 0 if it|.s succe|
|00003b40| 73 73 66 75 6c 20 6f 72 | 20 61 6e 20 61 70 70 72 |ssful or| an appr|
|00003b50| 6f 70 72 69 61 74 65 20 | 65 72 72 6f 72 20 72 65 |opriate |error re|
|00003b60| 73 75 6c 74 20 69 66 20 | 6e 6f 74 2e 20 0d 55 74 |sult if |not. .Ut|
|00003b70| 69 6c 69 74 79 20 52 6f | 75 74 69 6e 65 73 0d 54 |ility Ro|utines.T|
|00003b80| 68 65 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |he Contr|ol Strip|
|00003b90| 20 73 6f 66 74 77 61 72 | 65 20 70 72 6f 76 69 64 | softwar|e provid|
|00003ba0| 65 73 20 61 20 73 65 74 | 20 6f 66 20 75 74 69 6c |es a set| of util|
|00003bb0| 69 74 79 20 72 6f 75 74 | 69 6e 65 73 20 74 68 61 |ity rout|ines tha|
|00003bc0| 74 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |t are av|ailable |
|00003bd0| 74 6f 20 43 6f 6e 74 72 | 6f 6c 20 53 74 72 69 70 |to Contr|ol Strip|
|00003be0| 20 6d 6f 64 75 6c 65 73 | 2e 20 20 54 68 65 79 20 | modules|. They |
|00003bf0| 61 72 65 20 70 72 6f 76 | 69 64 65 64 20 74 6f 20 |are prov|ided to |
|00003c00| 70 72 6f 6d 6f 74 65 20 | 61 20 63 6f 6e 73 69 73 |promote |a consis|
|00003c10| 74 65 6e 74 20 75 73 65 | 72 20 69 6e 74 65 72 66 |tent use|r interf|
|00003c20| 61 63 65 20 77 69 74 68 | 69 6e 20 74 68 65 20 43 |ace with|in the C|
|00003c30| 6f 6e 74 72 6f 6c 20 53 | 74 72 69 70 20 61 6e 64 |ontrol S|trip and|
|00003c40| 20 74 6f 20 72 65 64 75 | 63 65 20 74 68 65 20 61 | to redu|ce the a|
|00003c50| 6d 6f 75 6e 74 20 6f 66 | 20 64 75 70 6c 69 63 61 |mount of| duplica|
|00003c60| 74 65 64 20 63 6f 64 65 | 20 74 68 61 74 20 65 61 |ted code| that ea|
|00003c70| 63 68 20 6d 6f 64 75 6c | 65 20 77 6f 75 6c 64 20 |ch modul|e would |
|00003c80| 68 61 76 65 20 74 6f 20 | 69 6e 63 6c 75 64 65 20 |have to |include |
|00003c90| 74 6f 20 73 75 70 70 6f | 72 74 20 63 6f 6d 6d 6f |to suppo|rt commo|
|00003ca0| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0d 54 68 65 |n functi|ons..The|
|00003cb0| 20 75 74 69 6c 69 74 79 | 20 72 6f 75 74 69 6e 65 | utility| routine|
|00003cc0| 73 20 61 72 65 20 63 61 | 6c 6c 65 64 20 74 68 72 |s are ca|lled thr|
|00003cd0| 6f 75 67 68 20 61 20 73 | 65 6c 65 63 74 6f 72 2d |ough a s|elector-|
|00003ce0| 62 61 73 65 64 20 74 72 | 61 70 2c 20 5f 43 6f 6e |based tr|ap, _Con|
|00003cf0| 74 72 6f 6c 53 74 72 69 | 70 44 69 73 70 61 74 63 |trolStri|pDispatc|
|00003d00| 68 20 28 24 41 41 46 32 | 29 2e 20 20 49 66 20 61 |h ($AAF2|). If a|
|00003d10| 6e 20 75 6e 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |n unimpl|emented |
|00003d20| 72 6f 75 74 69 6e 65 20 | 69 73 20 63 61 6c 6c 65 |routine |is calle|
|00003d30| 64 2c 20 69 74 20 77 69 | 6c 6c 20 72 65 74 75 72 |d, it wi|ll retur|
|00003d40| 6e 20 70 61 72 61 6d 45 | 72 72 20 61 73 20 74 68 |n paramE|rr as th|
|00003d50| 65 20 72 65 73 75 6c 74 | 2e 20 20 0d 57 61 72 6e |e result|. .Warn|
|00003d60| 69 6e 67 09 54 68 65 73 | 65 20 72 6f 75 74 69 6e |ing.Thes|e routin|
|00003d70| 65 73 20 73 68 6f 75 6c | 64 20 6e 6f 74 20 62 65 |es shoul|d not be|
|00003d80| 20 63 61 6c 6c 65 64 20 | 61 74 20 69 6e 74 65 72 | called |at inter|
|00003d90| 72 75 70 74 20 74 69 6d | 65 20 62 65 63 61 75 73 |rupt tim|e becaus|
|00003da0| 65 20 74 68 65 79 20 61 | 6c 6c 20 6d 6f 76 65 20 |e they a|ll move |
|00003db0| 6d 65 6d 6f 72 79 2e 0d | 53 42 49 73 43 6f 6e 74 |memory..|SBIsCont|
|00003dc0| 72 6f 6c 53 74 72 69 70 | 56 69 73 69 62 6c 65 0d |rolStrip|Visible.|
|00003dd0| 59 6f 75 20 63 61 6e 20 | 75 73 65 20 74 68 65 20 |You can |use the |
|00003de0| 53 42 49 73 43 6f 6e 74 | 72 6f 6c 53 74 72 69 70 |SBIsCont|rolStrip|
|00003df0| 56 69 73 69 62 6c 65 20 | 72 6f 75 74 69 6e 65 20 |Visible |routine |
|00003e00| 74 6f 20 66 69 6e 64 20 | 6f 75 74 20 77 68 65 74 |to find |out whet|
|00003e10| 68 65 72 20 74 68 65 20 | 43 6f 6e 74 72 6f 6c 20 |her the |Control |
|00003e20| 53 74 72 69 70 20 69 73 | 20 76 69 73 69 62 6c 65 |Strip is| visible|
|00003e30| 2e 20 0d 70 61 73 63 61 | 6c 20 42 6f 6f 6c 65 61 |. .pasca|l Boolea|
|00003e40| 6e 20 53 42 49 73 43 6f | 6e 74 72 6f 6c 53 74 72 |n SBIsCo|ntrolStr|
|00003e50| 69 70 56 69 73 69 62 6c | 65 28 29 3b 0d 54 68 65 |ipVisibl|e();.The|
|00003e60| 20 53 42 49 73 43 6f 6e | 74 72 6f 6c 53 74 72 69 | SBIsCon|trolStri|
|00003e70| 70 56 69 73 69 62 6c 65 | 20 72 6f 75 74 69 6e 65 |pVisible| routine|
|00003e80| 20 72 65 74 75 72 6e 73 | 20 61 20 42 6f 6f 6c 65 | returns| a Boole|
|00003e90| 61 6e 20 76 61 6c 75 65 | 20 69 6e 64 69 63 61 74 |an value| indicat|
|00003ea0| 69 6e 67 20 77 68 65 74 | 68 65 72 20 6f 72 20 6e |ing whet|her or n|
|00003eb0| 6f 74 20 74 68 65 20 43 | 6f 6e 74 72 6f 6c 20 53 |ot the C|ontrol S|
|00003ec0| 74 72 69 70 20 69 73 20 | 63 75 72 72 65 6e 74 6c |trip is |currentl|
|00003ed0| 79 20 76 69 73 69 62 6c | 65 2e 20 20 49 74 20 72 |y visibl|e. It r|
|00003ee0| 65 74 75 72 6e 73 20 61 | 20 76 61 6c 75 65 20 6f |eturns a| value o|
|00003ef0| 66 20 74 72 75 65 20 69 | 66 20 74 68 65 20 43 6f |f true i|f the Co|
|00003f00| 6e 74 72 6f 6c 20 53 74 | 72 69 70 20 69 73 20 76 |ntrol St|rip is v|
|00003f10| 69 73 69 62 6c 65 2c 20 | 6f 72 20 61 20 76 61 6c |isible, |or a val|
|00003f20| 75 65 20 6f 66 20 66 61 | 6c 73 65 20 69 66 20 69 |ue of fa|lse if i|
|00003f30| 74 d5 73 20 68 69 64 64 | 65 6e 2e 20 0d 49 74 20 |t.s hidd|en. .It |
|00003f40| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 66 6f 72 20 |is possi|ble for |
|00003f50| 74 68 69 73 20 63 61 6c | 6c 20 74 6f 20 72 65 74 |this cal|l to ret|
|00003f60| 75 72 6e 20 61 20 76 61 | 6c 75 65 20 6f 66 20 74 |urn a va|lue of t|
|00003f70| 72 75 65 20 65 76 65 6e | 20 77 68 65 6e 20 74 68 |rue even| when th|
|00003f80| 65 20 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 20 |e Contro|l Strip |
|00003f90| 69 73 20 6e 6f 74 20 76 | 69 73 69 62 6c 65 2e 20 |is not v|isible. |
|00003fa0| 54 68 61 74 20 68 61 70 | 70 65 6e 73 20 77 68 65 |That hap|pens whe|
|00003fb0| 6e 65 76 65 72 20 74 68 | 65 20 43 6f 6e 74 72 6f |never th|e Contro|
|00003fc0| 6c 20 53 74 72 69 70 20 | 69 73 20 6e 6f 74 20 61 |l Strip |is not a|
|00003fd0| 63 63 65 73 73 69 62 6c | 65 20 69 6e 20 74 68 65 |ccessibl|e in the|
|00003fe0| 20 63 75 72 72 65 6e 74 | 20 65 6e 76 69 72 6f 6e | current| environ|
|00003ff0| 6d 65 6e 74 2e 20 41 73 | 20 73 6f 6f 6e 20 61 73 |ment. As| soon as|
|00004000| 20 74 68 61 74 20 63 6f | 6e 64 69 74 69 6f 6e 20 | that co|ndition |
|00004010| 63 68 61 6e 67 65 73 2c | 20 74 68 65 20 43 6f 6e |changes,| the Con|
|00004020| 74 72 6f 6c 20 53 74 72 | 69 70 20 62 65 63 6f 6d |trol Str|ip becom|
|00004030| 65 73 20 76 69 73 69 62 | 6c 65 20 61 67 61 69 6e |es visib|le again|
|00004040| 20 61 6e 64 20 74 68 65 | 20 72 65 74 75 72 6e 65 | and the| returne|
|00004050| 64 20 76 61 6c 75 65 20 | 63 6f 72 72 65 63 74 6c |d value |correctl|
|00004060| 79 20 72 65 66 6c 65 63 | 74 73 20 74 68 65 20 61 |y reflec|ts the a|
|00004070| 63 74 75 61 6c 20 73 74 | 61 74 65 2e 20 0d 53 42 |ctual st|ate. .SB|
|00004080| 53 68 6f 77 48 69 64 65 | 43 6f 6e 74 72 6f 6c 53 |ShowHide|ControlS|
|00004090| 74 72 69 70 0d 59 6f 75 | 20 63 61 6e 20 75 73 65 |trip.You| can use|
|000040a0| 20 74 68 65 20 53 42 53 | 68 6f 77 48 69 64 65 43 | the SBS|howHideC|
|000040b0| 6f 6e 74 72 6f 6c 53 74 | 72 69 70 20 72 6f 75 74 |ontrolSt|rip rout|
|000040c0| 69 6e 65 20 74 6f 20 73 | 68 6f 77 20 6f 72 20 68 |ine to s|how or h|
|000040d0| 69 64 65 20 74 68 65 20 | 43 6f 6e 74 72 6f 6c 20 |ide the |Control |
|000040e0| 53 74 72 69 70 2e 20 0d | 70 61 73 63 61 6c 20 76 |Strip. .|pascal v|
|000040f0| 6f 69 64 20 53 42 53 68 | 6f 77 48 69 64 65 43 6f |oid SBSh|owHideCo|
|00004100| 6e 74 72 6f 6c 53 74 72 | 69 70 28 42 6f 6f 6c 65 |ntrolStr|ip(Boole|
|00004110| 61 6e 20 73 68 6f 77 49 | 74 29 3b 0d 54 68 65 20 |an showI|t);.The |
|00004120| 53 42 53 68 6f 77 48 69 | 64 65 43 6f 6e 74 72 6f |SBShowHi|deContro|
|00004130| 6c 53 74 72 69 70 20 72 | 6f 75 74 69 6e 65 20 64 |lStrip r|outine d|
|00004140| 65 74 65 72 6d 69 6e 65 | 73 20 74 68 65 20 76 69 |etermine|s the vi|
|00004150| 73 69 62 69 6c 69 74 79 | 20 73 74 61 74 65 20 66 |sibility| state f|
|00004160| 6f 72 20 74 68 65 20 43 | 6f 6e 74 72 6f 6c 20 53 |or the C|ontrol S|
|00004170| 74 72 69 70 20 62 61 73 | 65 64 20 6f 6e 20 74 68 |trip bas|ed on th|
|00004180| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 20 73 |e value |of the s|
|00004190| 68 6f 77 49 74 20 70 61 | 72 61 6d 65 74 65 72 2e |howIt pa|rameter.|
|000041a0| 20 20 50 61 73 73 69 6e | 67 20 61 20 76 61 6c 75 | Passin|g a valu|
|000041b0| 65 20 6f 66 20 74 72 75 | 65 20 6d 61 6b 65 73 20 |e of tru|e makes |
|000041c0| 74 68 65 20 43 6f 6e 74 | 72 6f 6c 20 53 74 72 69 |the Cont|rol Stri|
|000041d0| 70 20 76 69 73 69 62 6c | 65 2c 20 61 6e 64 20 70 |p visibl|e, and p|
|000041e0| 61 73 73 69 6e 67 20 61 | 20 76 61 6c 75 65 20 6f |assing a| value o|
|000041f0| 66 20 66 61 6c 73 65 20 | 68 69 64 65 73 20 69 74 |f false |hides it|
|00004200| 2e 20 20 4d 6f 64 75 6c | 65 73 20 73 68 6f 75 6c |. Modul|es shoul|
|00004210| 64 6e d5 74 20 74 79 70 | 69 63 61 6c 6c 79 20 6e |dn.t typ|ically n|
|00004220| 65 65 64 20 74 6f 20 63 | 61 6c 6c 20 74 68 69 73 |eed to c|all this|
|00004230| 20 72 6f 75 74 69 6e 65 | 2c 20 62 75 74 20 69 74 | routine|, but it|
|00004240| d5 73 20 70 72 6f 76 69 | 64 65 64 20 61 73 20 61 |.s provi|ded as a|
|00004250| 20 6d 65 61 6e 73 20 66 | 6f 72 20 6f 74 68 65 72 | means f|or other|
|00004260| 20 73 6f 66 74 77 61 72 | 65 20 74 6f 20 68 69 64 | softwar|e to hid|
|00004270| 65 20 74 68 65 20 43 6f | 6e 74 72 6f 6c 20 53 74 |e the Co|ntrol St|
|00004280| 72 69 70 20 77 68 65 6e | 20 69 74 20 6d 69 67 68 |rip when| it migh|
|00004290| 74 20 67 65 74 20 69 6e | 20 74 68 65 20 77 61 79 |t get in| the way|
|000042a0| 2e 20 0d 43 61 6c 6c 69 | 6e 67 20 53 42 53 68 6f |. .Calli|ng SBSho|
|000042b0| 77 48 69 64 65 43 6f 6e | 74 72 6f 6c 53 74 72 69 |wHideCon|trolStri|
|000042c0| 70 20 77 69 74 68 20 61 | 20 73 68 6f 77 49 74 20 |p with a| showIt |
|000042d0| 76 61 6c 75 65 20 6f 66 | 20 74 72 75 65 20 6d 61 |value of| true ma|
|000042e0| 79 20 6f 72 20 6d 61 79 | 20 6e 6f 74 20 73 68 6f |y or may| not sho|
|000042f0| 77 20 74 68 65 20 43 6f | 6e 74 72 6f 6c 20 53 74 |w the Co|ntrol St|
|00004300| 72 69 70 2c 20 64 65 70 | 65 6e 64 69 6e 67 20 6f |rip, dep|ending o|
|00004310| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 65 6e |n the cu|rrent en|
|00004320| 76 69 72 6f 6e 6d 65 6e | 74 3a 20 69 66 20 74 68 |vironmen|t: if th|
|00004330| 65 20 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 20 |e Contro|l Strip |
|00004340| 69 73 20 6e 6f 74 20 61 | 63 63 65 73 73 69 62 6c |is not a|ccessibl|
|00004350| 65 2c 20 69 74 20 64 6f | 65 73 20 6e 6f 74 20 62 |e, it do|es not b|
|00004360| 65 63 6f 6d 65 20 76 69 | 73 69 62 6c 65 2e 20 49 |ecome vi|sible. I|
|00004370| 66 20 61 20 73 68 6f 77 | 49 74 20 76 61 6c 75 65 |f a show|It value|
|00004380| 20 6f 66 20 74 72 75 65 | 20 69 73 20 70 61 73 73 | of true| is pass|
|00004390| 65 64 20 74 6f 20 74 68 | 69 73 20 72 6f 75 74 69 |ed to th|is routi|
|000043a0| 6e 65 2c 20 74 68 65 6e | 20 77 68 65 6e 20 74 68 |ne, then| when th|
|000043b0| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 63 68 |e enviro|nment ch|
|000043c0| 61 6e 67 65 73 2c 20 74 | 68 65 20 43 6f 6e 74 72 |anges, t|he Contr|
|000043d0| 6f 6c 20 53 74 72 69 70 | 20 77 69 6c 6c 20 62 65 |ol Strip| will be|
|000043e0| 63 6f 6d 65 20 76 69 73 | 69 62 6c 65 2e 0d 53 42 |come vis|ible..SB|
|000043f0| 53 61 66 65 54 6f 41 63 | 63 65 73 73 53 74 61 72 |SafeToAc|cessStar|
|00004400| 74 75 70 44 69 73 6b 0d | 59 6f 75 20 63 61 6e 20 |tupDisk.|You can |
|00004410| 75 73 65 20 74 68 65 20 | 53 42 53 61 66 65 54 6f |use the |SBSafeTo|
|00004420| 41 63 63 65 73 73 53 74 | 61 72 74 75 70 44 69 73 |AccessSt|artupDis|
|00004430| 6b 20 72 6f 75 74 69 6e | 65 20 74 6f 20 66 69 6e |k routin|e to fin|
|00004440| 64 20 6f 75 74 20 77 68 | 65 74 68 65 72 20 74 68 |d out wh|ether th|
|00004450| 65 20 69 6e 74 65 72 6e | 61 6c 20 68 61 72 64 20 |e intern|al hard |
|00004460| 64 69 73 6b 20 69 73 20 | 73 70 69 6e 6e 69 6e 67 |disk is |spinning|
|00004470| 20 73 6f 20 74 68 61 74 | 20 79 6f 75 72 20 73 6f | so that| your so|
|00004480| 66 74 77 61 72 65 20 63 | 61 6e 20 64 65 74 65 72 |ftware c|an deter|
|00004490| 6d 69 6e 65 20 77 68 65 | 74 68 65 72 20 74 6f 20 |mine whe|ther to |
|000044a0| 6d 61 6b 65 20 61 20 64 | 69 73 6b 20 61 63 63 65 |make a d|isk acce|
|000044b0| 73 73 20 6f 72 20 70 6f | 73 74 70 6f 6e 65 20 69 |ss or po|stpone i|
|000044c0| 74 20 75 6e 74 69 6c 20 | 61 20 74 69 6d 65 20 77 |t until |a time w|
|000044d0| 68 65 6e 20 74 68 65 20 | 64 69 73 6b 20 69 73 20 |hen the |disk is |
|000044e0| 61 6c 72 65 61 64 79 20 | 73 70 69 6e 6e 69 6e 67 |already |spinning|
|000044f0| 2e 20 0d 70 61 73 63 61 | 6c 20 42 6f 6f 6c 65 61 |. .pasca|l Boolea|
|00004500| 6e 20 53 42 53 61 66 65 | 54 6f 41 63 63 65 73 73 |n SBSafe|ToAccess|
|00004510| 53 74 61 72 74 75 70 44 | 69 73 6b 28 29 3b 0d 54 |StartupD|isk();.T|
|00004520| 68 65 20 53 42 53 61 66 | 65 54 6f 41 63 63 65 73 |he SBSaf|eToAcces|
|00004530| 73 53 74 61 72 74 75 70 | 44 69 73 6b 20 72 6f 75 |sStartup|Disk rou|
|00004540| 74 69 6e 65 20 72 65 74 | 75 72 6e 73 20 61 20 42 |tine ret|urns a B|
|00004550| 6f 6f 6c 65 61 6e 20 76 | 61 6c 75 65 20 6f 66 20 |oolean v|alue of |
|00004560| 74 72 75 65 20 69 66 20 | 74 68 65 20 64 69 73 6b |true if |the disk|
|00004570| 20 69 73 20 73 70 69 6e | 6e 69 6e 67 20 61 6e 64 | is spin|ning and|
|00004580| 20 66 61 6c 73 65 20 69 | 66 20 69 74 20 69 73 20 | false i|f it is |
|00004590| 6e 6f 74 2e 20 0d 53 42 | 4f 70 65 6e 4d 6f 64 75 |not. .SB|OpenModu|
|000045a0| 6c 65 52 65 73 6f 75 72 | 63 65 46 69 6c 65 0d 59 |leResour|ceFile.Y|
|000045b0| 6f 75 20 63 61 6e 20 75 | 73 65 20 74 68 65 20 53 |ou can u|se the S|
|000045c0| 42 4f 70 65 6e 4d 6f 64 | 75 6c 65 52 65 73 6f 75 |BOpenMod|uleResou|
|000045d0| 72 63 65 46 69 6c 65 20 | 72 6f 75 74 69 6e 65 20 |rceFile |routine |
|000045e0| 74 6f 20 6f 70 65 6e 20 | 61 20 6d 6f 64 75 6c 65 |to open |a module|
|000045f0| 20 72 65 73 6f 75 72 63 | 65 20 66 69 6c 65 2e 20 | resourc|e file. |
|00004600| 0d 70 61 73 63 61 6c 20 | 73 68 6f 72 74 20 53 42 |.pascal |short SB|
|00004610| 4f 70 65 6e 4d 6f 64 75 | 6c 65 52 65 73 6f 75 72 |OpenModu|leResour|
|00004620| 63 65 46 69 6c 65 28 4f | 53 54 79 70 65 20 66 69 |ceFile(O|SType fi|
|00004630| 6c 65 43 72 65 61 74 6f | 72 29 3b 0d 54 68 65 20 |leCreato|r);.The |
|00004640| 53 42 4f 70 65 6e 4d 6f | 64 75 6c 65 52 65 73 6f |SBOpenMo|duleReso|
|00004650| 75 72 63 65 46 69 6c 65 | 20 72 6f 75 74 69 6e 65 |urceFile| routine|
|00004660| 20 6f 70 65 6e 73 20 74 | 68 65 20 72 65 73 6f 75 | opens t|he resou|
|00004670| 72 63 65 20 66 6f 72 6b | 20 6f 66 20 74 68 65 20 |rce fork| of the |
|00004680| 6d 6f 64 75 6c 65 20 66 | 69 6c 65 20 77 68 6f 73 |module f|ile whos|
|00004690| 65 20 63 72 65 61 74 6f | 72 20 69 73 20 66 69 6c |e creato|r is fil|
|000046a0| 65 43 72 65 61 74 6f 72 | 2c 20 61 6e 64 20 72 65 |eCreator|, and re|
|000046b0| 74 75 72 6e 73 20 74 68 | 65 20 66 69 6c 65 d5 73 |turns th|e file.s|
|000046c0| 20 72 65 66 65 72 65 6e | 63 65 20 6e 75 6d 62 65 | referen|ce numbe|
|000046d0| 72 20 61 73 20 69 74 73 | 20 72 65 73 75 6c 74 2e |r as its| result.|
|000046e0| 20 20 49 66 20 74 68 65 | 20 66 69 6c 65 20 63 61 | If the| file ca|
|000046f0| 6e 6e 6f 74 20 62 65 20 | 66 6f 75 6e 64 20 6f 72 |nnot be |found or|
|00004700| 20 6f 70 65 6e 65 64 2c | 20 53 42 4f 70 65 6e 4d | opened,| SBOpenM|
|00004710| 6f 64 75 6c 65 52 65 73 | 6f 75 72 63 65 46 69 6c |oduleRes|ourceFil|
|00004720| 65 20 72 65 74 75 72 6e | 73 20 61 20 72 65 73 75 |e return|s a resu|
|00004730| 6c 74 20 6f 66 20 d0 31 | 2e 0d 53 42 4f 70 65 6e |lt of .1|..SBOpen|
|00004740| 4d 6f 64 75 6c 65 52 65 | 73 6f 75 72 63 65 46 69 |ModuleRe|sourceFi|
|00004750| 6c 65 20 70 72 6f 76 69 | 64 65 73 20 61 20 6d 65 |le provi|des a me|
|00004760| 61 6e 73 20 66 6f 72 20 | 61 20 6d 6f 64 75 6c 65 |ans for |a module|
|00004770| 20 74 6f 20 6c 6f 61 64 | 20 69 6e 20 6c 61 72 67 | to load| in larg|
|00004780| 65 20 6f 72 20 69 6e 66 | 72 65 71 75 65 6e 74 6c |e or inf|requentl|
|00004790| 79 20 75 73 65 64 20 72 | 65 73 6f 75 72 63 65 73 |y used r|esources|
|000047a0| 20 74 68 61 74 20 69 74 | 20 64 6f 65 73 6e d5 74 | that it| doesn.t|
|000047b0| 20 75 73 75 61 6c 6c 79 | 20 6e 65 65 64 2c 20 62 | usually| need, b|
|000047c0| 75 74 20 74 68 61 74 20 | 69 74 20 72 65 71 75 69 |ut that |it requi|
|000047d0| 72 65 73 20 66 6f 72 20 | 61 20 70 61 72 74 69 63 |res for |a partic|
|000047e0| 75 6c 61 72 20 6f 70 65 | 72 61 74 69 6f 6e 2e 0d |ular ope|ration..|
|000047f0| 53 42 4c 6f 61 64 50 72 | 65 66 65 72 65 6e 63 65 |SBLoadPr|eference|
|00004800| 73 0d 59 6f 75 20 63 61 | 6e 20 75 73 65 20 74 68 |s.You ca|n use th|
|00004810| 65 20 53 42 4c 6f 61 64 | 50 72 65 66 65 72 65 6e |e SBLoad|Preferen|
|00004820| 63 65 73 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 6c |ces rout|ine to l|
|00004830| 6f 61 64 20 61 20 72 65 | 73 6f 75 72 63 65 20 66 |oad a re|source f|
|00004840| 72 6f 6d 20 61 20 70 72 | 65 66 65 72 65 6e 63 65 |rom a pr|eference|
|00004850| 73 20 66 69 6c 65 2e 20 | 0d 70 61 73 63 61 6c 20 |s file. |.pascal |
|00004860| 4f 53 45 72 72 20 53 42 | 4c 6f 61 64 50 72 65 66 |OSErr SB|LoadPref|
|00004870| 65 72 65 6e 63 65 73 28 | 43 6f 6e 73 74 53 74 72 |erences(|ConstStr|
|00004880| 32 35 35 50 61 72 61 6d | 20 70 72 65 66 73 52 65 |255Param| prefsRe|
|00004890| 73 6f 75 72 63 65 4e 61 | 6d 65 2c 0d 09 48 61 6e |sourceNa|me,..Han|
|000048a0| 64 6c 65 20 2a 70 72 65 | 66 65 72 65 6e 63 65 73 |dle *pre|ferences|
|000048b0| 29 3b 0d 54 68 65 20 53 | 42 4c 6f 61 64 50 72 65 |);.The S|BLoadPre|
|000048c0| 66 65 72 65 6e 63 65 73 | 20 72 6f 75 74 69 6e 65 |ferences| routine|
|000048d0| 20 6c 6f 61 64 73 20 61 | 20 72 65 73 6f 75 72 63 | loads a| resourc|
|000048e0| 65 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 61 20 6d |e contai|ning a m|
|000048f0| 6f 64 75 6c 65 d5 73 20 | 63 6f 6e 66 69 67 75 72 |odule.s |configur|
|00004900| 61 74 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |ation in|formatio|
|00004910| 6e 20 66 72 6f 6d 20 74 | 68 65 20 43 6f 6e 74 72 |n from t|he Contr|
|00004920| 6f 6c 20 53 74 72 69 70 | d5 73 20 70 72 65 66 65 |ol Strip|.s prefe|
|00004930| 72 65 6e 63 65 73 20 66 | 69 6c 65 2e 20 54 68 65 |rences f|ile. The|
|00004940| 20 50 72 65 66 73 52 65 | 73 6f 75 72 63 65 4e 61 | PrefsRe|sourceNa|
|00004950| 6d 65 20 70 61 72 61 6d | 65 74 65 72 20 70 6f 69 |me param|eter poi|
|00004960| 6e 74 73 20 74 6f 20 61 | 20 50 61 73 63 61 6c 20 |nts to a| Pascal |
|00004970| 73 74 72 69 6e 67 20 63 | 6f 6e 74 61 69 6e 69 6e |string c|ontainin|
|00004980| 67 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |g the na|me of th|
|00004990| 65 20 72 65 73 6f 75 72 | 63 65 2e 20 54 68 65 20 |e resour|ce. The |
|000049a0| 50 72 65 66 65 72 65 6e | 63 65 73 20 70 61 72 61 |Preferen|ces para|
|000049b0| 6d 65 74 65 72 20 70 6f | 69 6e 74 73 20 74 6f 20 |meter po|ints to |
|000049c0| 61 20 76 61 72 69 61 62 | 6c 65 20 74 68 61 74 20 |a variab|le that |
|000049d0| 77 69 6c 6c 20 68 6f 6c | 64 20 61 20 68 61 6e 64 |will hol|d a hand|
|000049e0| 6c 65 20 74 6f 20 74 68 | 65 20 72 65 73 6f 75 72 |le to th|e resour|
|000049f0| 63 65 20 72 65 61 64 20 | 66 72 6f 6d 20 74 68 65 |ce read |from the|
|00004a00| 20 66 69 6c 65 2e 20 20 | 54 68 65 20 68 61 6e 64 | file. |The hand|
|00004a10| 6c 65 20 64 6f 65 73 20 | 6e 6f 74 20 6e 65 65 64 |le does |not need|
|00004a20| 20 74 6f 20 62 65 20 70 | 72 65 61 6c 6c 6f 63 61 | to be p|realloca|
|00004a30| 74 65 64 2e 0d 49 66 20 | 65 69 74 68 65 72 20 70 |ted..If |either p|
|00004a40| 72 65 66 73 52 65 73 6f | 75 72 63 65 4e 61 6d 65 |refsReso|urceName|
|00004a50| 20 6f 72 20 70 72 65 66 | 65 72 65 6e 63 65 73 20 | or pref|erences |
|00004a60| 63 6f 6e 74 61 69 6e 73 | 20 61 20 6e 69 6c 20 70 |contains| a nil p|
|00004a70| 6f 69 6e 74 65 72 2c 20 | 53 42 4c 6f 61 64 50 72 |ointer, |SBLoadPr|
|00004a80| 65 66 65 72 65 6e 63 65 | 73 20 64 6f 65 73 20 6e |eference|s does n|
|00004a90| 6f 74 68 69 6e 67 20 61 | 6e 64 20 72 65 74 75 72 |othing a|nd retur|
|00004aa0| 6e 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 70 |ns a res|ult of p|
|00004ab0| 61 72 61 6d 45 72 72 2e | 20 49 66 20 74 68 65 20 |aramErr.| If the |
|00004ac0| 72 65 73 6f 75 72 63 65 | 20 69 73 20 73 75 63 63 |resource| is succ|
|00004ad0| 65 73 73 66 75 6c 6c 79 | 20 6c 6f 61 64 65 64 2c |essfully| loaded,|
|00004ae0| 20 69 74 20 72 65 74 75 | 72 6e 73 20 61 20 72 65 | it retu|rns a re|
|00004af0| 73 75 6c 74 20 6f 66 20 | 30 2e 20 20 53 42 4c 6f |sult of |0. SBLo|
|00004b00| 61 64 50 72 65 66 65 72 | 65 6e 63 65 73 20 63 61 |adPrefer|ences ca|
|00004b10| 6e 20 61 6c 73 6f 20 72 | 65 74 75 72 6e 20 6f 74 |n also r|eturn ot|
|00004b20| 68 65 72 20 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 |her Memo|ry Manag|
|00004b30| 65 72 20 61 6e 64 20 52 | 65 73 6f 75 72 63 65 20 |er and R|esource |
|00004b40| 4d 61 6e 61 67 65 72 20 | 65 72 72 6f 72 73 20 69 |Manager |errors i|
|00004b50| 66 20 69 74 20 66 61 69 | 6c 73 20 64 75 72 69 6e |f it fai|ls durin|
|00004b60| 67 20 73 6f 6d 65 20 70 | 61 72 74 20 6f 66 20 74 |g some p|art of t|
|00004b70| 68 65 20 70 72 6f 63 65 | 73 73 2e 0d 53 42 53 61 |he proce|ss..SBSa|
|00004b80| 76 65 50 72 65 66 65 72 | 65 6e 63 65 73 0d 59 6f |vePrefer|ences.Yo|
|00004b90| 75 20 63 61 6e 20 75 73 | 65 20 74 68 65 20 53 42 |u can us|e the SB|
|00004ba0| 53 61 76 65 50 72 65 66 | 65 72 65 6e 63 65 73 20 |SavePref|erences |
|00004bb0| 72 6f 75 74 69 6e 65 20 | 74 6f 20 73 61 76 65 20 |routine |to save |
|00004bc0| 61 20 72 65 73 6f 75 72 | 63 65 20 74 6f 20 61 20 |a resour|ce to a |
|00004bd0| 70 72 65 66 65 72 65 6e | 63 65 73 20 66 69 6c 65 |preferen|ces file|
|00004be0| 2e 20 0d 70 61 73 63 61 | 6c 20 4f 53 45 72 72 20 |. .pasca|l OSErr |
|00004bf0| 53 42 53 61 76 65 50 72 | 65 66 65 72 65 6e 63 65 |SBSavePr|eference|
|00004c00| 73 28 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |s(ConstS|tr255Par|
|00004c10| 61 6d 20 70 72 65 66 73 | 52 65 73 6f 75 72 63 65 |am prefs|Resource|
|00004c20| 4e 61 6d 65 2c 0d 09 48 | 61 6e 64 6c 65 20 70 72 |Name,..H|andle pr|
|00004c30| 65 66 65 72 65 6e 63 65 | 73 29 3b 0d 54 68 65 20 |eference|s);.The |
|00004c40| 53 42 53 61 76 65 50 72 | 65 66 65 72 65 6e 63 65 |SBSavePr|eference|
|00004c50| 73 20 72 6f 75 74 69 6e | 65 20 73 61 76 65 73 20 |s routin|e saves |
|00004c60| 61 20 72 65 73 6f 75 72 | 63 65 20 63 6f 6e 74 61 |a resour|ce conta|
|00004c70| 69 6e 69 6e 67 20 61 20 | 6d 6f 64 75 6c 65 d5 73 |ining a |module.s|
|00004c80| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 69 | configu|ration i|
|00004c90| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 6f 20 74 68 |nformati|on to th|
|00004ca0| 65 20 43 6f 6e 74 72 6f | 6c 20 53 74 72 69 70 d5 |e Contro|l Strip.|
|00004cb0| 73 20 70 72 65 66 65 72 | 65 6e 63 65 73 20 66 69 |s prefer|ences fi|
|00004cc0| 6c 65 2e 20 54 68 65 20 | 50 72 65 66 73 52 65 73 |le. The |PrefsRes|
|00004cd0| 6f 75 72 63 65 4e 61 6d | 65 20 70 61 72 61 6d 65 |ourceNam|e parame|
|00004ce0| 74 65 72 20 70 6f 69 6e | 74 73 20 74 6f 20 61 20 |ter poin|ts to a |
|00004cf0| 50 61 73 63 61 6c 20 73 | 74 72 69 6e 67 20 63 6f |Pascal s|tring co|
|00004d00| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 6e 61 6d |ntaining| the nam|
|00004d10| 65 20 6f 66 20 74 68 65 | 20 72 65 73 6f 75 72 63 |e of the| resourc|
|00004d20| 65 2e 20 54 68 65 20 70 | 72 65 66 65 72 65 6e 63 |e. The p|referenc|
|00004d30| 65 73 20 70 61 72 61 6d | 65 74 65 72 20 63 6f 6e |es param|eter con|
|00004d40| 74 61 69 6e 73 20 61 20 | 68 61 6e 64 6c 65 20 74 |tains a |handle t|
|00004d50| 6f 20 61 20 62 6c 6f 63 | 6b 20 6f 66 20 64 61 74 |o a bloc|k of dat|
|00004d60| 61 20 77 68 69 63 68 20 | 77 69 6c 6c 20 62 65 20 |a which |will be |
|00004d70| 77 72 69 74 74 65 6e 20 | 74 6f 20 74 68 65 20 66 |written |to the f|
|00004d80| 69 6c 65 2e 0d 49 66 20 | 65 69 74 68 65 72 20 70 |ile..If |either p|
|00004d90| 72 65 66 73 52 65 73 6f | 75 72 63 65 4e 61 6d 65 |refsReso|urceName|
|00004da0| 20 6f 72 20 70 72 65 66 | 65 72 65 6e 63 65 73 20 | or pref|erences |
|00004db0| 68 61 73 20 61 20 6e 69 | 6c 20 76 61 6c 75 65 2c |has a ni|l value,|
|00004dc0| 20 53 42 53 61 76 65 50 | 72 65 66 65 72 65 6e 63 | SBSaveP|referenc|
|00004dd0| 65 73 20 64 6f 65 73 20 | 6e 6f 74 68 69 6e 67 20 |es does |nothing |
|00004de0| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 61 20 72 65 |and retu|rns a re|
|00004df0| 73 75 6c 74 20 6f 66 20 | 70 61 72 61 6d 45 72 72 |sult of |paramErr|
|00004e00| 2e 20 49 66 20 74 68 65 | 20 72 65 73 6f 75 72 63 |. If the| resourc|
|00004e10| 65 20 69 73 20 73 75 63 | 63 65 73 73 66 75 6c 6c |e is suc|cessfull|
|00004e20| 79 20 73 61 76 65 64 2c | 20 53 42 53 61 76 65 50 |y saved,| SBSaveP|
|00004e30| 72 65 66 65 72 65 6e 63 | 65 73 20 72 65 74 75 72 |referenc|es retur|
|00004e40| 6e 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 30 |ns a res|ult of 0|
|00004e50| 2e 20 53 42 53 61 76 65 | 50 72 65 66 65 72 65 6e |. SBSave|Preferen|
|00004e60| 63 65 73 20 63 61 6e 20 | 61 6c 73 6f 20 72 65 74 |ces can |also ret|
|00004e70| 75 72 6e 20 6f 74 68 65 | 72 20 4d 65 6d 6f 72 79 |urn othe|r Memory|
|00004e80| 20 4d 61 6e 61 67 65 72 | 20 61 6e 64 20 52 65 73 | Manager| and Res|
|00004e90| 6f 75 72 63 65 20 4d 61 | 6e 61 67 65 72 20 65 72 |ource Ma|nager er|
|00004ea0| 72 6f 72 73 20 69 66 20 | 69 74 20 66 61 69 6c 73 |rors if |it fails|
|00004eb0| 20 64 75 72 69 6e 67 20 | 73 6f 6d 65 20 70 61 72 | during |some par|
|00004ec0| 74 20 6f 66 20 74 68 65 | 20 70 72 6f 63 65 73 73 |t of the| process|
|00004ed0| 2e 0d 53 42 47 65 74 44 | 65 74 61 63 68 65 64 49 |..SBGetD|etachedI|
|00004ee0| 6e 64 53 74 72 69 6e 67 | 0d 59 6f 75 20 63 61 6e |ndString|.You can|
|00004ef0| 20 75 73 65 20 74 68 65 | 20 53 42 47 65 74 44 65 | use the| SBGetDe|
|00004f00| 74 61 63 68 65 64 49 6e | 64 53 74 72 69 6e 67 20 |tachedIn|dString |
|00004f10| 72 6f 75 74 69 6e 65 20 | 74 6f 20 67 65 74 20 61 |routine |to get a|
|00004f20| 20 73 74 72 69 6e 67 20 | 66 72 6f 6d 20 61 20 20 | string |from a |
|00004f30| 64 65 74 61 63 68 65 64 | 20 72 65 73 6f 75 72 63 |detached| resourc|
|00004f40| 65 2e 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 53 |e..pasca|l void S|
|00004f50| 42 47 65 74 44 65 74 61 | 63 68 65 64 49 6e 64 53 |BGetDeta|chedIndS|
|00004f60| 74 72 69 6e 67 28 53 74 | 72 69 6e 67 50 74 72 20 |tring(St|ringPtr |
|00004f70| 74 68 65 53 74 72 69 6e | 67 2c 0d 09 48 61 6e 64 |theStrin|g,..Hand|
|00004f80| 6c 65 20 73 74 72 69 6e | 67 4c 69 73 74 2c 0d 09 |le strin|gList,..|
|00004f90| 73 68 6f 72 74 20 77 68 | 69 63 68 53 74 72 69 6e |short wh|ichStrin|
|00004fa0| 67 29 3b 0d 54 68 65 20 | 53 42 47 65 74 44 65 74 |g);.The |SBGetDet|
|00004fb0| 61 63 68 65 64 49 6e 64 | 53 74 72 69 6e 67 20 72 |achedInd|String r|
|00004fc0| 6f 75 74 69 6e 65 20 69 | 73 20 74 68 65 20 64 65 |outine i|s the de|
|00004fd0| 74 61 63 68 65 64 20 72 | 65 73 6f 75 72 63 65 20 |tached r|esource |
|00004fe0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 47 65 74 49 6e |version |of GetIn|
|00004ff0| 64 53 74 72 69 6e 67 2e | 20 20 54 68 65 20 70 61 |dString.| The pa|
|00005000| 72 61 6d 65 74 65 72 20 | 74 68 65 53 74 72 69 6e |rameter |theStrin|
|00005010| 67 20 70 6f 69 6e 74 73 | 20 74 6f 20 61 20 50 61 |g points| to a Pa|
|00005020| 73 63 61 6c 20 73 74 72 | 69 6e 67 3b 20 73 74 72 |scal str|ing; str|
|00005030| 69 6e 67 4c 69 73 74 20 | 69 73 20 61 20 68 61 6e |ingList |is a han|
|00005040| 64 6c 65 20 74 6f 20 61 | 20 64 65 74 61 63 68 65 |dle to a| detache|
|00005050| 64 20 27 53 54 52 23 27 | 20 72 65 73 6f 75 72 63 |d 'STR#'| resourc|
|00005060| 65 3b 20 61 6e 64 20 77 | 68 69 63 68 53 74 72 69 |e; and w|hichStri|
|00005070| 6e 67 20 69 73 20 74 68 | 65 20 69 6e 64 65 78 20 |ng is th|e index |
|00005080| 28 31 d0 6e 29 20 69 6e | 74 6f 20 74 68 65 20 61 |(1.n) in|to the a|
|00005090| 72 72 61 79 20 6f 66 20 | 50 61 73 63 61 6c 20 73 |rray of |Pascal s|
|000050a0| 74 72 69 6e 67 73 20 63 | 6f 6e 74 61 69 6e 65 64 |trings c|ontained|
|000050b0| 20 69 6e 20 74 68 65 20 | 64 65 74 61 63 68 65 64 | in the |detached|
|000050c0| 20 72 65 73 6f 75 72 63 | 65 2e 20 20 53 42 47 65 | resourc|e. SBGe|
|000050d0| 74 44 65 74 61 63 68 65 | 64 49 6e 64 53 74 72 69 |tDetache|dIndStri|
|000050e0| 6e 67 20 77 69 6c 6c 20 | 63 6f 70 79 20 74 68 65 |ng will |copy the|
|000050f0| 20 73 74 72 69 6e 67 20 | 77 68 6f 73 65 20 69 6e | string |whose in|
|00005100| 64 65 78 20 69 73 20 77 | 68 69 63 68 53 74 72 69 |dex is w|hichStri|
|00005110| 6e 67 20 69 6e 74 6f 20 | 74 68 65 20 73 70 61 63 |ng into |the spac|
|00005120| 65 20 70 6f 69 6e 74 65 | 64 20 74 6f 20 62 79 20 |e pointe|d to by |
|00005130| 74 68 65 53 74 72 69 6e | 67 2e 20 20 49 66 20 77 |theStrin|g. If w|
|00005140| 68 69 63 68 53 74 72 69 | 6e 67 20 69 73 20 6f 75 |hichStri|ng is ou|
|00005150| 74 20 6f 66 20 72 61 6e | 67 65 2c 20 53 42 47 65 |t of ran|ge, SBGe|
|00005160| 74 44 65 74 61 63 68 65 | 64 49 6e 64 53 74 72 69 |tDetache|dIndStri|
|00005170| 6e 67 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 61 |ng will |return a|
|00005180| 20 7a 65 72 6f 2d 6c 65 | 6e 67 74 68 20 73 74 72 | zero-le|ngth str|
|00005190| 69 6e 67 2e 0d 53 42 47 | 65 74 44 65 74 61 63 68 |ing..SBG|etDetach|
|000051a0| 49 63 6f 6e 53 75 69 74 | 65 0d 59 6f 75 20 63 61 |IconSuit|e.You ca|
|000051b0| 6e 20 75 73 65 20 74 68 | 65 20 53 42 47 65 74 44 |n use th|e SBGetD|
|000051c0| 65 74 61 63 68 49 63 6f | 6e 53 75 69 74 65 20 72 |etachIco|nSuite r|
|000051d0| 6f 75 74 69 6e 65 20 74 | 6f 20 73 65 74 20 75 70 |outine t|o set up|
|000051e0| 20 61 20 64 65 74 61 63 | 68 65 64 20 69 63 6f 6e | a detac|hed icon|
|000051f0| 20 73 75 69 74 65 2e 0d | 70 61 73 63 61 6c 20 4f | suite..|pascal O|
|00005200| 53 45 72 72 20 53 42 47 | 65 74 44 65 74 61 63 68 |SErr SBG|etDetach|
|00005210| 49 63 6f 6e 53 75 69 74 | 65 28 48 61 6e 64 6c 65 |IconSuit|e(Handle|
|00005220| 20 2a 74 68 65 49 63 6f | 6e 53 75 69 74 65 2c 0d | *theIco|nSuite,.|
|00005230| 09 73 68 6f 72 74 20 74 | 68 65 52 65 73 49 44 2c |.short t|heResID,|
|00005240| 0d 09 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |..unsign|ed long |
|00005250| 73 65 6c 65 63 74 6f 72 | 29 3b 0d 54 68 65 20 53 |selector|);.The S|
|00005260| 42 47 65 74 44 65 74 61 | 63 68 49 63 6f 6e 53 75 |BGetDeta|chIconSu|
|00005270| 69 74 65 20 72 6f 75 74 | 69 6e 65 20 63 72 65 61 |ite rout|ine crea|
|00005280| 74 65 73 20 61 20 6e 65 | 77 20 69 63 6f 6e 20 73 |tes a ne|w icon s|
|00005290| 75 69 74 65 2c 20 6c 6f | 61 64 73 20 61 6c 6c 20 |uite, lo|ads all |
|000052a0| 6f 66 20 74 68 65 20 72 | 65 71 75 65 73 74 65 64 |of the r|equested|
|000052b0| 20 69 63 6f 6e 73 2c 20 | 61 6e 64 20 74 68 65 6e | icons, |and then|
|000052c0| 20 64 65 74 61 63 68 65 | 73 20 74 68 65 20 69 63 | detache|s the ic|
|000052d0| 6f 6e 73 2e 20 54 68 65 | 20 70 61 72 61 6d 65 74 |ons. The| paramet|
|000052e0| 65 72 20 74 68 65 49 63 | 6f 6e 53 75 69 74 65 20 |er theIc|onSuite |
|000052f0| 70 6f 69 6e 74 73 20 74 | 6f 20 74 68 65 20 6c 6f |points t|o the lo|
|00005300| 63 61 74 69 6f 6e 20 77 | 68 65 72 65 20 74 68 65 |cation w|here the|
|00005310| 20 68 61 6e 64 6c 65 20 | 74 6f 20 74 68 65 20 69 | handle |to the i|
|00005320| 63 6f 6e 20 73 75 69 74 | 65 20 77 69 6c 6c 20 62 |con suit|e will b|
|00005330| 65 20 73 74 6f 72 65 64 | 3b 20 74 68 65 20 70 61 |e stored|; the pa|
|00005340| 72 61 6d 65 74 65 72 20 | 74 68 65 52 65 73 49 44 |rameter |theResID|
|00005350| 20 69 73 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | is the |resource|
|00005360| 20 49 44 20 6f 66 20 74 | 68 65 20 69 63 6f 6e 73 | ID of t|he icons|
|00005370| 20 74 68 61 74 20 6d 61 | 6b 65 20 75 70 20 74 68 | that ma|ke up th|
|00005380| 65 20 69 63 6f 6e 20 73 | 75 69 74 65 3b 20 61 6e |e icon s|uite; an|
|00005390| 64 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |d the pa|rameter |
|000053a0| 73 65 6c 65 63 74 6f 72 | 20 74 65 6c 6c 73 20 77 |selector| tells w|
|000053b0| 68 69 63 68 20 69 63 6f | 6e 73 20 73 68 6f 75 6c |hich ico|ns shoul|
|000053c0| 64 20 62 65 20 6c 6f 61 | 64 65 64 20 69 6e 74 6f |d be loa|ded into|
|000053d0| 20 74 68 65 20 73 75 69 | 74 65 2e 20 20 54 68 65 | the sui|te. The|
|000053e0| 20 73 65 6c 65 63 74 6f | 72 20 70 61 72 61 6d 65 | selecto|r parame|
|000053f0| 74 65 72 20 73 68 6f 75 | 6c 64 20 74 79 70 69 63 |ter shou|ld typic|
|00005400| 61 6c 6c 79 20 63 6f 6e | 74 61 69 6e 20 6f 6e 65 |ally con|tain one|
|00005410| 20 28 6f 72 20 61 20 63 | 6f 6d 62 69 6e 61 74 69 | (or a c|ombinati|
|00005420| 6f 6e 20 6f 66 29 20 74 | 68 65 20 66 6f 6c 6c 6f |on of) t|he follo|
|00005430| 77 69 6e 67 20 76 61 6c | 75 65 73 3a 0d 73 76 41 |wing val|ues:.svA|
|00005440| 6c 6c 4c 61 72 67 65 44 | 61 74 61 09 30 78 30 30 |llLargeD|ata.0x00|
|00005450| 30 30 30 30 46 46 09 6c | 6f 61 64 20 6c 61 72 67 |0000FF.l|oad larg|
|00005460| 65 20 33 32 2d 62 79 2d | 33 32 2d 70 69 78 65 6c |e 32-by-|32-pixel|
|00005470| 20 69 63 6f 6e 73 20 28 | 27 49 43 4e 23 27 2c 20 | icons (|'ICN#', |
|00005480| 27 69 63 6c 34 27 2c 20 | 27 69 63 6c 38 27 29 0d |'icl4', |'icl8').|
|00005490| 73 76 41 6c 6c 53 6d 61 | 6c 6c 44 61 74 61 09 30 |svAllSma|llData.0|
|000054a0| 78 30 30 30 30 46 46 30 | 30 09 6c 6f 61 64 20 73 |x0000FF0|0.load s|
|000054b0| 6d 61 6c 6c 20 31 36 2d | 62 79 2d 31 36 2d 70 69 |mall 16-|by-16-pi|
|000054c0| 78 65 6c 20 69 63 6f 6e | 73 20 28 27 69 63 73 23 |xel icon|s ('ics#|
|000054d0| 27 2c 20 27 69 63 73 34 | 27 2c 20 27 69 63 73 38 |', 'ics4|', 'ics8|
|000054e0| 27 29 0d 73 76 41 6c 6c | 4d 69 6e 69 44 61 74 61 |').svAll|MiniData|
|000054f0| 09 30 78 30 30 46 46 30 | 30 30 30 09 6c 6f 61 64 |.0x00FF0|000.load|
|00005500| 20 6d 69 6e 69 20 31 32 | 2d 62 79 2d 31 32 2d 70 | mini 12|-by-12-p|
|00005510| 69 78 65 6c 20 69 63 6f | 6e 73 20 28 27 69 63 6d |ixel ico|ns ('icm|
|00005520| 23 27 2c 20 27 69 63 6d | 34 27 2c 20 27 69 63 6d |#', 'icm|4', 'icm|
|00005530| 38 27 29 0d 54 68 65 73 | 65 20 76 61 6c 75 65 73 |8').Thes|e values|
|00005540| 20 6d 61 79 20 62 65 20 | 4f 52 2d 65 64 20 74 6f | may be |OR-ed to|
|00005550| 67 65 74 68 65 72 20 74 | 6f 20 6c 6f 61 64 20 63 |gether t|o load c|
|00005560| 6f 6d 62 69 6e 61 74 69 | 6f 6e 73 20 6f 66 20 69 |ombinati|ons of i|
|00005570| 63 6f 6e 20 73 69 7a 65 | 73 2e 20 20 53 42 47 65 |con size|s. SBGe|
|00005580| 74 44 65 74 61 63 68 49 | 63 6f 6e 53 75 69 74 65 |tDetachI|conSuite|
|00005590| 20 72 65 74 75 72 6e 73 | 20 61 6e 20 61 70 70 72 | returns| an appr|
|000055a0| 6f 70 72 69 61 74 65 20 | 65 72 72 6f 72 20 63 6f |opriate |error co|
|000055b0| 64 65 20 69 66 20 69 74 | d5 73 20 75 6e 73 75 63 |de if it|.s unsuc|
|000055c0| 63 65 73 73 66 75 6c 2c | 20 6f 72 20 30 20 69 66 |cessful,| or 0 if|
|000055d0| 20 69 66 20 77 61 73 20 | 61 62 6c 65 20 74 6f 20 | if was |able to |
|000055e0| 6c 6f 61 64 20 74 68 65 | 20 69 63 6f 6e 20 73 75 |load the| icon su|
|000055f0| 69 74 65 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |ite. No|te that |
|00005600| 69 66 20 6e 6f 6e 65 20 | 6f 66 20 74 68 65 20 69 |if none |of the i|
|00005610| 63 6f 6e 73 20 63 6f 6d | 70 72 69 73 69 6e 67 20 |cons com|prising |
|00005620| 74 68 65 20 69 63 6f 6e | 20 73 75 69 74 65 20 63 |the icon| suite c|
|00005630| 6f 75 6c 64 20 62 65 20 | 66 6f 75 6e 64 2c 20 74 |ould be |found, t|
|00005640| 68 65 20 63 61 6c 6c 20 | 72 65 74 75 72 6e 73 20 |he call |returns |
|00005650| 74 68 65 20 65 72 72 6f | 72 20 72 65 73 4e 6f 74 |the erro|r resNot|
|00005660| 46 6f 75 6e 64 2e 0d 57 | 61 72 6e 69 6e 67 3a 09 |Found..W|arning:.|
|00005670| 59 6f 75 20 73 68 6f 75 | 6c 64 20 63 61 6c 6c 20 |You shou|ld call |
|00005680| 53 42 47 65 74 44 65 74 | 61 63 68 49 63 6f 6e 53 |SBGetDet|achIconS|
|00005690| 75 69 74 65 20 6f 6e 6c | 79 20 77 68 65 6e 20 74 |uite onl|y when t|
|000056a0| 68 65 20 6d 6f 64 75 6c | 65 d5 73 20 72 65 73 6f |he modul|e.s reso|
|000056b0| 75 72 63 65 20 66 69 6c | 65 20 69 73 20 6f 70 65 |urce fil|e is ope|
|000056c0| 6e 2c 20 77 68 69 63 68 | 20 69 73 20 74 79 70 69 |n, which| is typi|
|000056d0| 63 61 6c 6c 79 20 74 68 | 65 20 63 61 73 65 20 64 |cally th|e case d|
|000056e0| 75 72 69 6e 67 20 61 20 | 6d 6f 64 75 6c 65 d5 73 |uring a |module.s|
|000056f0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00005700| 63 61 6c 6c 2e 0d 53 42 | 54 72 61 63 6b 70 6f 70 |call..SB|Trackpop|
|00005710| 75 70 4d 65 6e 75 0d 59 | 6f 75 20 63 61 6e 20 75 |upMenu.Y|ou can u|
|00005720| 73 65 20 74 68 65 20 53 | 42 54 72 61 63 6b 70 6f |se the S|BTrackpo|
|00005730| 70 75 70 4d 65 6e 75 20 | 72 6f 75 74 69 6e 65 20 |pupMenu |routine |
|00005740| 74 6f 20 6d 61 6e 61 67 | 65 20 61 20 70 6f 70 2d |to manag|e a pop-|
|00005750| 75 70 20 6d 65 6e 75 2e | 20 0d 70 61 73 63 61 6c |up menu.| .pascal|
|00005760| 20 73 68 6f 72 74 20 53 | 42 54 72 61 63 6b 70 6f | short S|BTrackpo|
|00005770| 70 75 70 4d 65 6e 75 28 | 63 6f 6e 73 74 20 52 65 |pupMenu(|const Re|
|00005780| 63 74 20 2a 6d 6f 64 75 | 6c 65 52 65 63 74 2c 0d |ct *modu|leRect,.|
|00005790| 09 4d 65 6e 75 48 61 6e | 64 6c 65 20 74 68 65 4d |.MenuHan|dle theM|
|000057a0| 65 6e 75 29 3b 0d 54 68 | 65 20 53 42 54 72 61 63 |enu);.Th|e SBTrac|
|000057b0| 6b 70 6f 70 75 70 4d 65 | 6e 75 20 72 6f 75 74 69 |kpopupMe|nu routi|
|000057c0| 6e 65 20 68 61 6e 64 6c | 65 73 20 73 65 74 74 69 |ne handl|es setti|
|000057d0| 6e 67 20 75 70 20 61 6e | 64 20 64 69 73 70 6c 61 |ng up an|d displa|
|000057e0| 79 69 6e 67 20 61 20 70 | 6f 70 2d 75 70 20 6d 65 |ying a p|op-up me|
|000057f0| 6e 75 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |nu assoc|iated wi|
|00005800| 74 68 20 61 20 6d 6f 64 | 75 6c 65 2e 20 20 54 68 |th a mod|ule. Th|
|00005810| 65 20 6d 6f 64 75 6c 65 | 20 73 68 6f 75 6c 64 20 |e module| should |
|00005820| 70 61 73 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |pass a p|ointer t|
|00005830| 6f 20 69 74 73 20 64 69 | 73 70 6c 61 79 20 72 65 |o its di|splay re|
|00005840| 63 74 61 6e 67 6c 65 20 | 61 6e 64 20 61 20 68 61 |ctangle |and a ha|
|00005850| 6e 64 6c 65 20 74 6f 20 | 74 68 65 20 6d 65 6e 75 |ndle to |the menu|
|00005860| 20 74 6f 20 75 73 65 2e | 20 20 54 68 65 20 6d 65 | to use.| The me|
|00005870| 6e 75 20 77 69 6c 6c 20 | 62 65 20 64 69 73 70 6c |nu will |be displ|
|00005880| 61 79 65 64 20 6a 75 73 | 74 20 61 62 6f 76 65 20 |ayed jus|t above |
|00005890| 6f 72 20 62 65 6c 6f 77 | 20 74 68 65 20 6d 6f 64 |or below| the mod|
|000058a0| 75 6c 65 d5 73 20 64 69 | 73 70 6c 61 79 20 72 65 |ule.s di|splay re|
|000058b0| 63 74 61 6e 67 6c 65 2c | 20 61 6c 6c 6f 77 69 6e |ctangle,| allowin|
|000058c0| 67 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 76 69 |g the us|er to vi|
|000058d0| 65 77 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 63 |ew the c|urrent c|
|000058e0| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 6f 72 20 |onfigura|tion or |
|000058f0| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 73 65 |to chang|e the se|
|00005900| 74 74 69 6e 67 73 2e 20 | 20 53 42 54 72 61 63 6b |ttings. | SBTrack|
|00005910| 70 6f 70 75 70 4d 65 6e | 75 20 72 65 74 75 72 6e |popupMen|u return|
|00005920| 73 20 77 68 69 63 68 20 | 6d 65 6e 75 20 69 74 65 |s which |menu ite|
|00005930| 6d 20 77 61 73 20 73 65 | 6c 65 63 74 65 64 2c 20 |m was se|lected, |
|00005940| 6f 72 20 30 20 69 66 20 | 6e 6f 20 69 74 65 6d 20 |or 0 if |no item |
|00005950| 77 61 73 20 73 65 6c 65 | 63 74 65 64 20 62 65 63 |was sele|cted bec|
|00005960| 61 75 73 65 20 74 68 65 | 20 75 73 65 72 20 6d 6f |ause the| user mo|
|00005970| 76 65 64 20 74 68 65 20 | 63 75 72 73 6f 72 20 6f |ved the |cursor o|
|00005980| 75 74 73 69 64 65 20 74 | 68 65 20 6d 65 6e 75 d5 |utside t|he menu.|
|00005990| 73 20 62 6f 75 6e 64 73 | 2e 20 0d 57 61 72 6e 69 |s bounds|. .Warni|
|000059a0| 6e 67 09 4d 65 6e 75 73 | 20 61 72 65 20 64 69 73 |ng.Menus| are dis|
|000059b0| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 20 43 6f |played i|n the Co|
|000059c0| 6e 74 72 6f 6c 20 53 74 | 72 69 70 d5 73 20 66 6f |ntrol St|rip.s fo|
|000059d0| 6e 74 2c 20 73 6f 20 64 | 6f 6e d5 74 20 75 73 65 |nt, so d|on.t use|
|000059e0| 20 74 68 65 20 43 68 65 | 63 6b 49 74 65 6d 28 29 | the Che|ckItem()|
|000059f0| 20 72 6f 75 74 69 6e 65 | 20 74 6f 20 6d 61 72 6b | routine| to mark|
|00005a00| 20 6d 65 6e 75 20 69 74 | 65 6d 73 2c 20 62 65 63 | menu it|ems, bec|
|00005a10| 61 75 73 65 20 61 20 63 | 68 65 63 6b 6d 61 72 6b |ause a c|heckmark|
|00005a20| 20 69 73 20 73 75 70 70 | 6f 72 74 65 64 20 6f 6e | is supp|orted on|
|00005a30| 6c 79 20 69 6e 20 74 68 | 65 20 73 79 73 74 65 6d |ly in th|e system|
|00005a40| 20 66 6f 6e 74 2e 20 20 | 55 73 65 20 74 68 65 20 | font. |Use the |
|00005a50| 53 65 74 49 74 65 6d 4d | 61 72 6b 28 29 20 72 6f |SetItemM|ark() ro|
|00005a60| 75 74 69 6e 65 20 69 6e | 73 74 65 61 64 20 61 6e |utine in|stead an|
|00005a70| 64 20 70 61 73 73 20 69 | 74 20 61 20 62 75 6c 6c |d pass i|t a bull|
|00005a80| 65 74 20 28 a5 29 2e 0d | 53 42 54 72 61 63 6b 53 |et (.)..|SBTrackS|
|00005a90| 6c 69 64 65 72 0d 59 6f | 75 20 63 61 6e 20 75 73 |lider.Yo|u can us|
|00005aa0| 65 20 74 68 65 20 53 42 | 54 72 61 63 6b 53 6c 69 |e the SB|TrackSli|
|00005ab0| 64 65 72 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 64 |der rout|ine to d|
|00005ac0| 69 73 70 6c 61 79 20 61 | 6e 64 20 73 65 74 20 61 |isplay a|nd set a|
|00005ad0| 6e 20 61 72 62 69 74 72 | 61 72 79 20 70 61 72 61 |n arbitr|ary para|
|00005ae0| 6d 65 74 65 72 2e 20 0d | 70 61 73 63 61 6c 20 73 |meter. .|pascal s|
|00005af0| 68 6f 72 74 20 53 42 54 | 72 61 63 6b 53 6c 69 64 |hort SBT|rackSlid|
|00005b00| 65 72 28 63 6f 6e 73 74 | 20 52 65 63 74 20 2a 6d |er(const| Rect *m|
|00005b10| 6f 64 75 6c 65 52 65 63 | 74 2c 0d 09 73 68 6f 72 |oduleRec|t,..shor|
|00005b20| 74 20 74 69 63 6b 73 4f | 6e 53 6c 69 64 65 72 2c |t ticksO|nSlider,|
|00005b30| 0d 09 73 68 6f 72 74 20 | 69 6e 69 74 69 61 6c 56 |..short |initialV|
|00005b40| 61 6c 75 65 29 3b 0d 54 | 68 65 20 53 42 54 72 61 |alue);.T|he SBTra|
|00005b50| 63 6b 53 6c 69 64 65 72 | 20 72 6f 75 74 69 6e 65 |ckSlider| routine|
|00005b60| 20 64 69 73 70 6c 61 79 | 73 20 61 6e 20 75 6e 6c | display|s an unl|
|00005b70| 61 62 65 6c 65 64 20 73 | 6c 69 64 65 72 20 61 62 |abeled s|lider ab|
|00005b80| 6f 76 65 20 74 68 65 20 | 6d 6f 64 75 6c 65 d5 73 |ove the |module.s|
|00005b90| 20 64 69 73 70 6c 61 79 | 20 72 65 63 74 61 6e 67 | display| rectang|
|00005ba0| 6c 65 2e 20 20 59 6f 75 | 20 63 61 6e 20 75 73 65 |le. You| can use|
|00005bb0| 20 74 68 65 20 73 6c 69 | 64 65 72 20 66 6f 72 20 | the sli|der for |
|00005bc0| 64 69 73 70 6c 61 79 69 | 6e 67 20 61 6e 64 20 73 |displayi|ng and s|
|00005bd0| 65 74 74 69 6e 67 20 74 | 68 65 20 73 74 61 74 65 |etting t|he state|
|00005be0| 20 6f 66 20 61 6e 20 61 | 72 62 69 74 72 61 72 79 | of an a|rbitrary|
|00005bf0| 20 70 61 72 61 6d 65 74 | 65 72 2e 20 54 68 65 20 | paramet|er. The |
|00005c00| 70 61 72 61 6d 65 74 65 | 72 20 4d 6f 64 75 6c 65 |paramete|r Module|
|00005c10| 52 65 63 74 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |Rect con|tains a |
|00005c20| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 6d |pointer |to the m|
|00005c30| 6f 64 75 6c 65 d5 73 20 | 64 69 73 70 6c 61 79 20 |odule.s |display |
|00005c40| 72 65 63 74 61 6e 67 6c | 65 3b 20 74 69 63 6b 73 |rectangl|e; ticks|
|00005c50| 4f 6e 53 6c 69 64 65 72 | 20 69 73 20 74 68 65 20 |OnSlider| is the |
|00005c60| 75 70 70 65 72 20 62 6f | 75 6e 64 73 20 6f 66 20 |upper bo|unds of |
|00005c70| 74 68 65 20 76 61 6c 75 | 65 20 72 65 74 75 72 6e |the valu|e return|
|00005c80| 65 64 20 62 79 20 74 68 | 65 20 73 6c 69 64 65 72 |ed by th|e slider|
|00005c90| 3b 20 61 6e 64 20 69 6e | 69 74 69 61 6c 56 61 6c |; and in|itialVal|
|00005ca0| 75 65 20 69 73 20 74 68 | 65 20 73 74 61 72 74 69 |ue is th|e starti|
|00005cb0| 6e 67 20 70 6f 73 69 74 | 69 6f 6e 20 28 30 20 74 |ng posit|ion (0 t|
|00005cc0| 6f 20 74 69 63 6b 73 4f | 6e 53 6c 69 64 65 72 d0 |o ticksO|nSlider.|
|00005cd0| 31 29 2e 20 20 20 57 68 | 65 6e 20 74 68 65 20 75 |1). Wh|en the u|
|00005ce0| 73 65 72 20 72 65 6c 65 | 61 73 65 73 20 74 68 65 |ser rele|ases the|
|00005cf0| 20 6d 6f 75 73 65 20 62 | 75 74 74 6f 6e 2c 20 53 | mouse b|utton, S|
|00005d00| 42 54 72 61 63 6b 53 6c | 69 64 65 72 20 72 65 74 |BTrackSl|ider ret|
|00005d10| 75 72 6e 73 20 74 68 65 | 20 66 69 6e 61 6c 20 70 |urns the| final p|
|00005d20| 6f 73 69 74 69 6f 6e 2e | 0d 53 42 53 68 6f 77 48 |osition.|.SBShowH|
|00005d30| 65 6c 70 53 74 72 69 6e | 67 0d 59 6f 75 20 63 61 |elpStrin|g.You ca|
|00005d40| 6e 20 75 73 65 20 74 68 | 65 20 53 42 53 68 6f 77 |n use th|e SBShow|
|00005d50| 48 65 6c 70 53 74 72 69 | 6e 67 20 72 6f 75 74 69 |HelpStri|ng routi|
|00005d60| 6e 65 20 74 6f 20 64 69 | 73 70 6c 61 79 20 61 20 |ne to di|splay a |
|00005d70| 48 65 6c 70 20 62 61 6c | 6c 6f 6f 6e 2e 20 0d 70 |Help bal|loon. .p|
|00005d80| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 53 42 53 68 |ascal OS|Err SBSh|
|00005d90| 6f 77 48 65 6c 70 53 74 | 72 69 6e 67 28 63 6f 6e |owHelpSt|ring(con|
|00005da0| 73 74 20 52 65 63 74 20 | 2a 6d 6f 64 75 6c 65 52 |st Rect |*moduleR|
|00005db0| 65 63 74 2c 0d 09 53 74 | 72 69 6e 67 50 74 72 20 |ect,..St|ringPtr |
|00005dc0| 68 65 6c 70 53 74 72 69 | 6e 67 29 3b 0d 54 68 65 |helpStri|ng);.The|
|00005dd0| 20 53 42 53 68 6f 77 48 | 65 6c 70 53 74 72 69 6e | SBShowH|elpStrin|
|00005de0| 67 20 72 6f 75 74 69 6e | 65 20 64 69 73 70 6c 61 |g routin|e displa|
|00005df0| 79 73 20 61 20 6d 6f 64 | 75 6c 65 d5 73 20 48 65 |ys a mod|ule.s He|
|00005e00| 6c 70 20 62 61 6c 6c 6f | 6f 6e 2e 20 20 54 68 65 |lp ballo|on. The|
|00005e10| 20 6d 6f 64 75 6c 65 20 | 70 61 73 73 65 73 20 61 | module |passes a|
|00005e20| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 69 74 73 20 | pointer| to its |
|00005e30| 64 69 73 70 6c 61 79 20 | 72 65 63 74 61 6e 67 6c |display |rectangl|
|00005e40| 65 20 61 6e 64 20 61 20 | 70 6f 69 6e 74 65 72 20 |e and a |pointer |
|00005e50| 74 6f 20 61 20 50 61 73 | 63 61 6c 20 73 74 72 69 |to a Pas|cal stri|
|00005e60| 6e 67 2c 20 61 6e 64 20 | 74 68 65 20 72 6f 75 74 |ng, and |the rout|
|00005e70| 69 6e 65 20 64 69 73 70 | 6c 61 79 73 20 74 68 65 |ine disp|lays the|
|00005e80| 20 62 61 6c 6c 6f 6f 6e | 20 69 66 20 70 6f 73 73 | balloon| if poss|
|00005e90| 69 62 6c 65 2e 20 20 49 | 66 20 74 68 65 20 68 65 |ible. I|f the he|
|00005ea0| 6c 70 20 73 74 72 69 6e | 67 20 68 61 73 20 61 20 |lp strin|g has a |
|00005eb0| 6c 65 6e 67 74 68 20 6f | 66 20 30 20 6f 72 20 74 |length o|f 0 or t|
|00005ec0| 68 65 20 48 65 6c 70 20 | 4d 61 6e 61 67 65 72 20 |he Help |Manager |
|00005ed0| 69 73 20 75 6e 61 62 6c | 65 20 74 6f 20 64 69 73 |is unabl|e to dis|
|00005ee0| 70 6c 61 79 20 61 20 62 | 61 6c 6c 6f 6f 6e 2c 20 |play a b|alloon, |
|00005ef0| 61 6e 20 65 72 72 6f 72 | 20 72 65 73 75 6c 74 20 |an error| result |
|00005f00| 69 73 20 72 65 74 75 72 | 6e 65 64 2e 20 49 66 20 |is retur|ned. If |
|00005f10| 53 42 53 68 6f 77 48 65 | 6c 70 53 74 72 69 6e 67 |SBShowHe|lpString|
|00005f20| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 64 69 | success|fully di|
|00005f30| 73 70 6c 61 79 73 20 74 | 68 65 20 48 65 6c 70 20 |splays t|he Help |
|00005f40| 62 61 6c 6c 6f 6f 6e 2c | 20 69 74 20 72 65 74 75 |balloon,| it retu|
|00005f50| 72 6e 73 20 61 20 72 65 | 73 75 6c 74 20 6f 66 20 |rns a re|sult of |
|00005f60| 30 2e 0d 53 42 47 65 74 | 42 61 72 47 72 61 70 68 |0..SBGet|BarGraph|
|00005f70| 57 69 64 74 68 0d 59 6f | 75 20 63 61 6e 20 75 73 |Width.Yo|u can us|
|00005f80| 65 20 74 68 65 20 53 42 | 47 65 74 42 61 72 47 72 |e the SB|GetBarGr|
|00005f90| 61 70 68 57 69 64 74 68 | 20 72 6f 75 74 69 6e 65 |aphWidth| routine|
|00005fa0| 20 74 6f 20 66 69 6e 64 | 20 6f 75 74 20 74 68 65 | to find| out the|
|00005fb0| 20 68 6f 77 20 77 69 64 | 65 20 61 20 62 61 72 20 | how wid|e a bar |
|00005fc0| 67 72 61 70 68 20 64 72 | 61 77 6e 20 62 79 20 53 |graph dr|awn by S|
|00005fd0| 42 44 72 61 77 42 61 72 | 47 72 61 70 68 20 28 64 |BDrawBar|Graph (d|
|00005fe0| 65 73 63 72 69 62 65 64 | 20 6e 65 78 74 29 20 77 |escribed| next) w|
|00005ff0| 69 6c 6c 20 62 65 20 73 | 6f 20 74 68 61 74 20 61 |ill be s|o that a|
|00006000| 20 6d 6f 64 75 6c 65 20 | 63 61 6e 20 63 61 6c 63 | module |can calc|
|00006010| 75 6c 61 74 65 20 69 74 | 73 20 64 69 73 70 6c 61 |ulate it|s displa|
|00006020| 79 20 77 69 64 74 68 2e | 0d 70 61 73 63 61 6c 20 |y width.|.pascal |
|00006030| 73 68 6f 72 74 20 53 42 | 47 65 74 42 61 72 47 72 |short SB|GetBarGr|
|00006040| 61 70 68 57 69 64 74 68 | 28 73 68 6f 72 74 20 62 |aphWidth|(short b|
|00006050| 61 72 43 6f 75 6e 74 29 | 3b 0d 54 68 65 20 53 42 |arCount)|;.The SB|
|00006060| 47 65 74 42 61 72 47 72 | 61 70 68 57 69 64 74 68 |GetBarGr|aphWidth|
|00006070| 20 72 6f 75 74 69 6e 65 | 20 72 65 74 75 72 6e 73 | routine| returns|
|00006080| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 61 20 | the wid|th of a |
|00006090| 62 61 72 20 67 72 61 70 | 68 20 63 6f 6e 74 61 69 |bar grap|h contai|
|000060a0| 6e 69 6e 67 20 62 61 72 | 43 6f 75 6e 74 20 73 65 |ning bar|Count se|
|000060b0| 67 6d 65 6e 74 73 2e 20 | 20 49 66 20 62 61 72 43 |gments. | If barC|
|000060c0| 6f 75 6e 74 20 68 61 73 | 20 61 20 76 61 6c 75 65 |ount has| a value|
|000060d0| 20 6c 65 73 73 20 74 68 | 61 6e 20 30 2c 20 74 68 | less th|an 0, th|
|000060e0| 65 20 53 42 47 65 74 42 | 61 72 47 72 61 70 68 57 |e SBGetB|arGraphW|
|000060f0| 69 64 74 68 20 72 6f 75 | 74 69 6e 65 20 72 65 74 |idth rou|tine ret|
|00006100| 75 72 6e 73 20 61 20 77 | 69 64 74 68 20 6f 66 20 |urns a w|idth of |
|00006110| 30 2e 20 0d 53 42 44 72 | 61 77 42 61 72 47 72 61 |0. .SBDr|awBarGra|
|00006120| 70 68 0d 59 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |ph.You c|an use t|
|00006130| 68 65 20 53 42 44 72 61 | 77 42 61 72 47 72 61 70 |he SBDra|wBarGrap|
|00006140| 68 20 72 6f 75 74 69 6e | 65 20 74 6f 20 64 72 61 |h routin|e to dra|
|00006150| 77 20 61 20 62 61 72 20 | 67 72 61 70 68 2e 0d 70 |w a bar |graph..p|
|00006160| 61 73 63 61 6c 20 76 6f | 69 64 20 53 42 44 72 61 |ascal vo|id SBDra|
|00006170| 77 42 61 72 47 72 61 70 | 68 28 73 68 6f 72 74 20 |wBarGrap|h(short |
|00006180| 6c 65 76 65 6c 2c 20 73 | 68 6f 72 74 20 62 61 72 |level, s|hort bar|
|00006190| 43 6f 75 6e 74 2c 0d 09 | 73 68 6f 72 74 20 64 69 |Count,..|short di|
|000061a0| 72 65 63 74 69 6f 6e 2c | 0d 09 50 6f 69 6e 74 20 |rection,|..Point |
|000061b0| 62 61 72 47 72 61 70 68 | 54 6f 70 4c 65 66 74 29 |barGraph|TopLeft)|
|000061c0| 3b 0d 54 68 65 20 53 42 | 44 72 61 77 42 61 72 47 |;.The SB|DrawBarG|
|000061d0| 72 61 70 68 20 72 6f 75 | 74 69 6e 65 20 64 72 61 |raph rou|tine dra|
|000061e0| 77 73 20 61 20 62 61 72 | 20 67 72 61 70 68 20 63 |ws a bar| graph c|
|000061f0| 6f 6e 74 61 69 6e 69 6e | 67 20 74 68 65 20 6e 75 |ontainin|g the nu|
|00006200| 6d 62 65 72 20 6f 66 20 | 73 65 67 6d 65 6e 74 73 |mber of |segments|
|00006210| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 74 68 | specifi|ed by th|
|00006220| 65 20 62 61 72 43 6f 75 | 6e 74 20 70 61 72 61 6d |e barCou|nt param|
|00006230| 65 74 65 72 20 69 6e 20 | 61 20 6d 6f 64 75 6c 65 |eter in |a module|
|00006240| d5 73 20 64 69 73 70 6c | 61 79 20 61 72 65 61 2e |.s displ|ay area.|
|00006250| 20 49 66 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 | If the |value of|
|00006260| 20 62 61 72 43 6f 75 6e | 74 20 69 73 20 6c 65 73 | barCoun|t is les|
|00006270| 73 20 74 68 61 6e 20 6f | 72 20 65 71 75 61 6c 20 |s than o|r equal |
|00006280| 74 6f 20 30 2c 20 53 42 | 44 72 61 77 42 61 72 47 |to 0, SB|DrawBarG|
|00006290| 72 61 70 68 20 64 6f 65 | 73 20 6e 6f 74 68 69 6e |raph doe|s nothin|
|000062a0| 67 2e 20 0d 54 68 65 20 | 62 61 72 20 67 72 61 70 |g. .The |bar grap|
|000062b0| 68 20 69 73 20 64 72 61 | 77 6e 20 72 65 6c 61 74 |h is dra|wn relat|
|000062c0| 69 76 65 20 74 6f 20 74 | 68 65 20 6c 6f 63 61 74 |ive to t|he locat|
|000062d0| 69 6f 6e 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |ion spec|ified by|
|000062e0| 20 62 61 72 47 72 61 70 | 68 54 6f 70 4c 65 66 74 | barGrap|hTopLeft|
|000062f0| 2e 20 0d 46 69 67 75 72 | 65 20 32 20 73 68 6f 77 |. .Figur|e 2 show|
|00006300| 73 20 74 68 65 20 77 61 | 79 20 74 68 65 20 70 6f |s the wa|y the po|
|00006310| 69 6e 74 20 62 61 72 47 | 72 61 70 68 54 6f 70 4c |int barG|raphTopL|
|00006320| 65 66 74 20 64 65 74 65 | 72 6d 69 6e 65 73 20 74 |eft dete|rmines t|
|00006330| 68 65 20 70 6f 73 69 74 | 69 6f 6e 20 6f 66 20 0d |he posit|ion of .|
|00006340| 74 68 65 20 62 61 72 20 | 67 72 61 70 68 2e 20 0d |the bar |graph. .|
|00006350| 46 69 67 75 72 65 20 32 | 09 50 6f 73 69 74 69 6f |Figure 2|.Positio|
|00006360| 6e 69 6e 67 20 61 20 62 | 61 72 20 67 72 61 70 68 |ning a b|ar graph|
|00006370| 0d 54 68 65 20 6c 65 76 | 65 6c 20 70 61 72 61 6d |.The lev|el param|
|00006380| 65 74 65 72 20 64 65 74 | 65 72 6d 69 6e 65 73 20 |eter det|ermines |
|00006390| 68 6f 77 20 6d 61 6e 79 | 20 73 65 67 6d 65 6e 74 |how many| segment|
|000063a0| 73 20 61 72 65 20 68 69 | 67 68 6c 69 67 68 74 65 |s are hi|ghlighte|
|000063b0| 64 2e 20 54 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |d. The v|alue of |
|000063c0| 6c 65 76 65 6c 20 73 68 | 6f 75 6c 64 20 62 65 20 |level sh|ould be |
|000063d0| 69 6e 20 74 68 65 20 72 | 61 6e 67 65 20 6f 66 20 |in the r|ange of |
|000063e0| 30 20 74 6f 20 62 61 72 | 43 6f 75 6e 74 d0 31 2e |0 to bar|Count.1.|
|000063f0| 20 49 66 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 | If the |value of|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.